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
However I couldn't compare them in a specific case under restify:
// trigger this error when some in-existing route being calledserver.on('NotFound',(req,res,err,cb)=>{req.log.info(JSON.stringify(err,null,2));// { "code": "ResourceNotFound", "message": "/xxxx does not exist" }req.log.info(err.toString());// ResourceNotFoundError: /xxxx does not existreq.log.info(err.code);// Errorif(errinstanceoferrors.ResourceNotFoundError){// never get here}cb();});
kind of weird, any ideas?
I'm not sure where is better to report this issue, restify or this repo?
versions restify: 5.2.0 restify-errors: 5.0.0
The text was updated successfully, but these errors were encountered:
Based on README, the error should be compared using
instanceof
operator.for example
However I couldn't compare them in a specific case under
restify
:kind of weird, any ideas?
I'm not sure where is better to report this issue,
restify
or this repo?versions
restify
:5.2.0
restify-errors
:5.0.0
The text was updated successfully, but these errors were encountered: