nest-koa-adapter icon indicating copy to clipboard operation
nest-koa-adapter copied to clipboard

Cannot use ctx.throw

Open jfkz opened this issue 1 year ago • 1 comments

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.

jfkz avatar Mar 22 '23 17:03 jfkz

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

seidelmartin avatar Apr 15 '23 05:04 seidelmartin