Open matthieusieben opened 11 months ago
I agree in principle, but in practice this won't ever matter.
Anyway, given a fix can be a single added ?
, I won't mind it being added:
return err instanceof Error && !!err.isBoom && (!statusCode || err.output?.statusCode === statusCode);
Runtime
na
Runtime version
na
Module version
all
Last module version without issue
?
Used with
standalone
Any other relevant information
No response
What are you trying to achieve or the steps to reproduce?
What was the result you got?
An error because
err.output
is undefined in theBadBoom
instanceWhat result did you expect?
I know that
isBoom
is meant to work with object created only with any version of the@hapi/boom
package but it could at least ensure thaterr.output
is an object and thaterr.output.statusCode
is a number.What do you think ?