Skip to content

Commit

Permalink
Fix unhandled exception on invalid endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
frawleyskid committed Oct 22, 2023
1 parent 8e63503 commit ca27449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rootRouter.all("*", ({ url }) => {

export default {
fetch: (request: Request, env: Env) =>
router.handle(request, env).catch(async (err) => {
rootRouter.handle(request, env).catch(async (err) => {
console.log(err.message);

if (err instanceof ResponseError) {
Expand Down

0 comments on commit ca27449

Please sign in to comment.