Skip to content

Commit

Permalink
feat(store-devtools): pass entire error object to the error handler (#…
Browse files Browse the repository at this point in the history
…2853)

Closes #2824
  • Loading branch information
r0ss0neri authored Jan 11, 2021
1 parent 28dd7a2 commit ce28b44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/store-devtools/src/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function computeNextEntry(
nextState = reducer(state, action);
} catch (err) {
nextError = err.toString();
errorHandler.handleError(err.stack || err);
errorHandler.handleError(err);
}

return {
Expand Down Expand Up @@ -415,8 +415,7 @@ export function liftReducerWith(
currentStateIndex,
computedStates,
isLocked,
// prettier-ignore
isPaused
isPaused,
} = liftedAction.nextLiftedState);
break;
}
Expand Down

0 comments on commit ce28b44

Please sign in to comment.