From 227e8ea3be390354a2967fc22d9324368b79dc43 Mon Sep 17 00:00:00 2001 From: Wade Simmons Date: Mon, 6 Jun 2011 12:01:38 -0700 Subject: [PATCH] if err.name is blank (not an Error instance), use sys.inspect --- bin/expresso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/expresso b/bin/expresso index ecc0317..b424a95 100755 --- a/bin/expresso +++ b/bin/expresso @@ -735,7 +735,7 @@ function runFile(file, fn) { function error(suite, test, err) { ++failures; - var name = err.name, + var name = err.name || sys.inspect(err), stack = err.stack ? err.stack.replace(err.name, '') : '', label = test === 'uncaught' ? test