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
What are you trying to achieve or the steps to reproduce?
constBadBoom=classextendsError{isBoom=true;};Boom.isBoom(newBadBoom());// trueBoom.isBoom(newBadBoom(),404);// Cannot read properties of undefined (reading 'statusCode')
What was the result you got?
An error because err.output is undefined in the BadBoom instance
What 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 that err.output is an object and that err.output.statusCode is a number.
What do you think ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: