Skip to content

Commit

Permalink
Log error if unexpected
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 19, 2018
1 parent 1e39662 commit 7f68a3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/util/setup.js
Expand Up @@ -25,7 +25,11 @@ Test.prototype.shouldBailOut = function(promise, expected, expectedStdErr) {
throw err;
};
this.throws(f, expected);
this.ok(expectedStdErr.test(stderr));
const result = expectedStdErr.test(stderr);
this.ok(result);
if (!result) {
console.error(err);
}
}
);
};

0 comments on commit 7f68a3a

Please sign in to comment.