fix: add logger for errors, return correct error when resume is locked

This commit is contained in:
Amruth Pillai
2023-11-22 22:25:54 +01:00
parent 27758c72e3
commit 4baecb22e9
4 changed files with 23 additions and 3 deletions

View File

@ -55,6 +55,7 @@ export class ResumeController {
throw new BadRequestException(ErrorMessage.ResumeSlugAlreadyExists);
}
Logger.error(error);
throw new InternalServerErrorException(error);
}
}
@ -69,6 +70,7 @@ export class ResumeController {
throw new BadRequestException(ErrorMessage.ResumeSlugAlreadyExists);
}
Logger.error(error);
throw new InternalServerErrorException(error);
}
}