You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using server slide render with koa, what means Error will be thrown from a bundler file, then the Error instance is not an instance of node Error.
Then what if I just throw {status: 404}, follow the code it will be transformed to non-error thrown: [Object object], so there will be no way to get the original error message!
Should we just delete this line of code or find another way?
The text was updated successfully, but these errors were encountered:
Notice https://github.com/koajs/onerror/blob/master/index.js#L35
I'm using server slide render with koa, what means Error will be thrown from a bundler file, then the
Error
instance is not an instance of nodeError
.Then what if I just
throw {status: 404}
, follow the code it will be transformed tonon-error thrown: [Object object]
, so there will be no way to get the original error message!Should we just delete this line of code or find another way?
The text was updated successfully, but these errors were encountered: