Skip to content

Commit

Permalink
ci: 🐛 log error to console
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Nov 6, 2023
1 parent a88a794 commit d6620e0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions apps/server/src/resume/resume.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Delete,
Get,
InternalServerErrorException,
Logger,
Param,
Patch,
Post,
Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}
}

0 comments on commit d6620e0

Please sign in to comment.