From 54c883c2bb5c35c02b1a2081b2f17554550aa1d4 Mon Sep 17 00:00:00 2001 From: Marc Godard Date: Mon, 9 Jan 2023 13:30:15 -0500 Subject: [PATCH] fix(cli): Properly log validation errors in log-error hook --- packages/cli/src/app/templates/logger.tpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/app/templates/logger.tpl.ts b/packages/cli/src/app/templates/logger.tpl.ts index 0a9b226998..c5894f59cd 100644 --- a/packages/cli/src/app/templates/logger.tpl.ts +++ b/packages/cli/src/app/templates/logger.tpl.ts @@ -32,7 +32,7 @@ export const logError = async (context: HookContext, next: NextFunction) => { // Log validation errors if (error.data) { - logger.error(error.data) + logger.error('Data: %O', error.data) } throw error