Add an Inspect method to `errors.errorString`.
bbuck opened this issue · 0 comments
bbuck commented
When you run require("events")
in the REPL you see
=> {
["on"] = <function>,
["Halt"] = *errors.errorString(intentional halt of event execution),
["emit_once"] = <function>,
["once"] = <function>,
["emit"] = <function>,
}
The *errors.errorString
should have a better representation, perhaps Error("...")
or something similar. This may not be something we add directly to this (private) type but more specifically handling an error
interface type in the Inspect
method for the script engine.