Rethrow errors as console.error looses sourcemaps

This commit is contained in:
Mihail Diordiev 2015-11-28 11:28:46 +02:00
parent 1752cccd82
commit 16a63a1a17

View File

@ -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 {