withClueCatching

inline fun <R> withClueCatching(clue: () -> Any?, thunk: () -> R): R(source)

Catch anything and rethrow, but prepend the clue's toString(). This is basically the same as just using Kotest's clue.asClue { ... }, except that asClue only catches assertion errors from inside Kotest.