Add debug argument to Boom.reformat() (#37487)

This commit is contained in:
Sylvan Mably
2019-08-14 20:24:38 -04:00
committed by Pranav Senthilnathan
parent 3afd612b19
commit 4e846ad5af

View File

@@ -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