recordError

fun recordError(where: String, detail: String)

Record a script error from a string detail (origin already known).


fun recordError(where: String, t: Throwable)

Record a script error from a Throwable, capturing the full cause chain and stack trace.