From 16a63a1a173ad8a894c3b3b8d147583a6aea2f86 Mon Sep 17 00:00:00 2001 From: Mihail Diordiev Date: Sat, 28 Nov 2015 11:28:46 +0200 Subject: [PATCH] Rethrow errors as console.error looses sourcemaps --- src/instrument.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instrument.js b/src/instrument.js index 8885c1fa..faf4de78 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -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 {