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

Cannot use ctx.throw #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfkz
Copy link

@jfkz jfkz commented Mar 22, 2023

When I'm trying to use ctx.throw in legacy Koa code this methods caused errors. Reason is: there is no response object when we are throwing exception.

I rewrite code little bit to support this situation as well.

Please review.

@seidelmartin
Copy link
Owner

seidelmartin commented Apr 15, 2023

Hi @jfkz, thanks for your contribution. Would you please support it with test?

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

Successfully merging this pull request may close these issues.

None yet

2 participants