Skip to content

Commit

Permalink
Merge pull request #10889 from jmcdo29/fix/fastify-exception-handler
Browse files Browse the repository at this point in the history
fix(fastify): return the response on exception
  • Loading branch information
kamilmysliwiec committed Feb 1, 2023
2 parents 23f56bd + 1217bc1 commit 7865c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/router/router-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class RouterProxy {
} catch (e) {
const host = new ExecutionContextHost([req, res, next]);
exceptionsHandler.next(e, host);
return res;
}
};
}
Expand All @@ -46,6 +47,7 @@ export class RouterProxy {
} catch (e) {
const host = new ExecutionContextHost([req, res, next]);
exceptionsHandler.next(e, host);
return res;
}
};
}
Expand Down

0 comments on commit 7865c61

Please sign in to comment.