mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 02:53:53 +03:00
Rethrow errors as console.error looses sourcemaps
This commit is contained in:
parent
1752cccd82
commit
16a63a1a17
|
@ -67,7 +67,7 @@ function computeNextEntry(reducer, action, state, error) {
|
|||
nextState = reducer(state, action);
|
||||
} catch (err) {
|
||||
nextError = err.toString();
|
||||
console.error(err.stack || err);
|
||||
setTimeout(() => { throw err; }, 0);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user