mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Add debug argument to Boom.reformat() (#37487)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
3afd612b19
commit
4e846ad5af
@@ -169,6 +169,7 @@ const unauthorizedError = Boom.unauthorized() as Error;
|
||||
const error = Boom.badRequest('Cannot feed after midnight');
|
||||
error.output.statusCode = 499; // Assign a custom error code
|
||||
error.reformat();
|
||||
error.reformat(true);
|
||||
|
||||
/**
|
||||
* Add a custom key to the payload
|
||||
|
||||
Reference in New Issue
Block a user