Skip to content

Commit

Permalink
rethrow unknown errors when initializing router
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed May 9, 2024
1 parent f76a95d commit 66c642b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/primate/src/hooks/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const post = async app => {
error instanceof DoubleRoute && errors.DoubleRoute.throw(error.route);
error instanceof OptionalRoute && errors.OptionalRoute.throw(error.route);
error instanceof RestRoute && errors.RestRoute.throw(error.route);
// rethrow original error
throw error;
}
const layout = { depth: router.depth("layout") };
return { ...app, types, dispatch: dispatch(types), layout, router };
Expand Down

0 comments on commit 66c642b

Please sign in to comment.