mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 11:51:41 +03:00
Merge pull request #240 from sapegin/patch-3
Show error message, not just a stack trace
This commit is contained in:
commit
b030896048
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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/
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user