mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-18 04:20:45 +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);
|
nextState = reducer(state, action);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
nextError = err.toString();
|
nextError = err.toString();
|
||||||
console.error(err.stack || err);
|
setTimeout(() => { throw err; }, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user