From d6620e0816139cdc5c80a611cc0b5d32f7d4864a Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Mon, 6 Nov 2023 09:52:38 +0100 Subject: [PATCH] ci: :bug: log error to console --- apps/server/src/resume/resume.controller.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/apps/server/src/resume/resume.controller.ts b/apps/server/src/resume/resume.controller.ts index 674b1690e..b923125de 100644 --- a/apps/server/src/resume/resume.controller.ts +++ b/apps/server/src/resume/resume.controller.ts @@ -6,6 +6,7 @@ import { Delete, Get, InternalServerErrorException, + Logger, Param, Patch, Post, @@ -125,10 +126,8 @@ export class ResumeController { return { url }; } catch (error) { - throw new InternalServerErrorException(ErrorMessage.ResumePrinterError, { - cause: error, - description: error.message, - }); + Logger.error(error); + throw new InternalServerErrorException(error); } } @@ -141,10 +140,8 @@ export class ResumeController { return { url }; } catch (error) { - throw new InternalServerErrorException(ErrorMessage.ResumePreviewError, { - cause: error, - description: error.message, - }); + Logger.error(error); + throw new InternalServerErrorException(error); } } }