senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.96k stars 311 forks source link

Error identification needs to handle doppelgängers #927

Open rjrodger opened 1 year ago

rjrodger commented 1 year ago
      error: {
        identify: function identifyError(e) {
          return (e instanceof Error) ||
            Object.prototype.toString.call(e)==='[object Error]'
        },
      },