mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-28 20:43:56 +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