seidelmartin / nest-koa-adapter

Koa Http adapter for Nest.js
MIT License
30 stars 6 forks source link

Cannot use ctx.throw #31

Open jfkz opened 1 year ago

jfkz commented 1 year ago

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 commented 1 year ago

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