When catching a global error in Node.js, print the type of error

This commit is contained in:
James Bunton
2018-12-06 22:00:34 +11:00
parent a621d05fa7
commit d803bd12a6
5 changed files with 39 additions and 16 deletions

View File

@@ -78,7 +78,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
cleanup();
if (j$.isError_(err)) {
if (!(err instanceof StopExecutionError)) {
if (!(err instanceof StopExecutionError) && !err.jasmineMessage) {
self.fail(err);
}
self.errored = errored = true;