From 4e846ad5af3dfa040e979d7b69c2eafa8bbe3a60 Mon Sep 17 00:00:00 2001 From: Sylvan Mably Date: Wed, 14 Aug 2019 20:24:38 -0400 Subject: [PATCH] Add debug argument to Boom.reformat() (#37487) --- types/hapi__boom/hapi__boom-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/hapi__boom/hapi__boom-tests.ts b/types/hapi__boom/hapi__boom-tests.ts index 0c421f798d..6daf7ed099 100644 --- a/types/hapi__boom/hapi__boom-tests.ts +++ b/types/hapi__boom/hapi__boom-tests.ts @@ -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