error

fun error(error: JsError = definedExternally)(source)

The error() method of the with the associated stream to error.

MDN Reference