hapijs / boom

HTTP-friendly error objects
Other
2.94k stars 192 forks source link

Docs: Clarify usage with `instanceof` #270

Closed royshouvik closed 4 years ago

royshouvik commented 4 years ago

The instanceof check needs to be called with Boom.Boom since Boom is not a constructor. Calling err instanceof Boom throws TypeError: Right-hand side of 'instanceof' is not callable