diff --git a/src/core/matchers/toThrowError.js b/src/core/matchers/toThrowError.js index 9c24c87b..ca5a7df0 100644 --- a/src/core/matchers/toThrowError.js +++ b/src/core/matchers/toThrowError.js @@ -32,7 +32,7 @@ getJasmineRequireObj().toThrowError = function(j$) { } if (arguments.length == 1) { - return pass("Expected function not to throw an Error, but it threw " + thrown + "."); + return pass("Expected function not to throw an Error, but it threw " + fnNameFor(thrown) + "."); } if (errorType) {