Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onError handler has error property as undefined on Cloudflare Workers #272

Closed
mrherickz opened this issue Oct 17, 2023 · 1 comment
Closed

Comments

@mrherickz
Copy link

Trying to get error from onError handler inside Cloudflare Workers, but the error is undefined.

new Elysia({ aot: false })
  .onError(({ error }) => {
    console.log("ERROR", error); // undefined
  })

Elysia v0.7.17

@SaltyAom
Copy link
Member

Fix with eabe264, available on 0.7.27.

Feel free to reopen if the issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants