diff --git a/src/instrument.js b/src/instrument.js index 7195979a..3b6d5678 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -77,7 +77,7 @@ function computeNextEntry(reducer, action, state, error) { // In Chrome, rethrowing provides better source map support setTimeout(() => { throw err; }); } else { - console.error(err.stack || err); + console.error(err); } } diff --git a/test/instrument.spec.js b/test/instrument.spec.js index c8abc4af..1c0ac858 100644 --- a/test/instrument.spec.js +++ b/test/instrument.spec.js @@ -169,7 +169,7 @@ describe('instrument', () => { expect(computedStates[3].error).toMatch( /Interrupted by an error up the chain/ ); - expect(spy.calls[0].arguments[0]).toMatch( + expect(spy.calls[0].arguments[0].toString()).toMatch( /ReferenceError/ );