koajs / onerror

an error handler for koa, hack ctx.onerror
MIT License
140 stars 20 forks source link

fix: stringify-err #36

Closed dickeylth closed 2 years ago

dickeylth commented 2 years ago

The err may be an object and the error message would print as nodejs.Error: non-error thrown: [object Object] which is not helpful, try to stringify it.

fengmk2 commented 2 years ago

@dickeylth Look good, can you add a unittest for this change?

fengmk2 commented 2 years ago

4.2.0