summaryrefslogtreecommitdiffstats
path: root/spec/env/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/env/common.js')
-rw-r--r--spec/env/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/env/common.js b/spec/env/common.js
index 111294c..2a24db2 100644
--- a/spec/env/common.js
+++ b/spec/env/common.js
@@ -66,7 +66,7 @@ global.shouldThrow = function(callback, type, msg) {
throw new AssertError('Type failure: ' + err);
}
if (msg && !(msg.test ? msg.test(err.message) : msg === err.message)) {
- equal(msg, err.message);
+ throw new AssertError('Throw mismatch: Expected ' + err.message + ' to match ' + msg + '\n\n' + err.stack, shouldThrow);
}
}
if (failed) {