Closed chrift closed 5 years ago
I have opened pr #247 containing style appropriate code from above
Can you provide a test case? Just a quick example of how to reproduce this?
Hey Eran,
Here is an example of what led me to find this error:
const Boom = require('./')
class Example extends Error {
constructor (message) {
super(message)
Boom.boomify(this)
}
}
// console.log(Error())
console.log(new Example())
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
As a result of the fixes for #216, any error messages set on
err.output.payload.error
throw the following error:It looks like even though on line 385 it checks for an error message stored in
err.output.payload.error
, it doesn't consider them on line 394.One possible solution to this could be:
I can open a PR with this change if desired.