Skip to content


if is blank (not an Error instance), use sys.inspect #105

wants to merge 1 commit into from

1 participant


Sometimes something other than an Error object gets thrown. This patch will use sys.inspect to show what the err object is if is missing (so you can see what it is instead of just seeing 'undefined').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/expresso
2 bin/expresso
@@ -735,7 +735,7 @@ function runFile(file, fn) {
function error(suite, test, err) {
- var name =,
+ var name = || sys.inspect(err),
stack = err.stack ? err.stack.replace(, '') : '',
label = test === 'uncaught'
? test
Something went wrong with that request. Please try again.