Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix issues brought up by coderabbit

Amruth Pillai3b73dcf29d91
diff --git a/apps/client/src/libs/lingui.ts b/apps/client/src/libs/lingui.ts
index ab62ff76c..bc4452922 100644
--- a/apps/client/src/libs/lingui.ts
+++ b/apps/client/src/libs/lingui.ts
@@ -17,8 +17,8 @@ export async function dynamicActivate(locale: string) {
if (dayjsLocales[locale]) {
dayjs.locale(await dayjsLocales[locale]());
}
- } catch (error) {
- // eslint-disable-next-line no-console
- console.error(error);
+ } catch {
+ // eslint-disable-next-line lingui/no-unlocalized-strings
+ throw new Error(`Failed to load messages for locale: ${locale}`);
}
}
diff --git a/apps/server/src/printer/printer.service.ts b/apps/server/src/printer/printer.service.ts
index 262a89997..18127079c 100644
--- a/apps/server/src/printer/printer.service.ts
+++ b/apps/server/src/printer/printer.service.ts
@@ -204,8 +204,10 @@ export class PrinterService {
return resumeUrl;
} catch (error) {
- // eslint-disable-next-line no-console
- console.trace(error);
+ throw new InternalServerErrorException(
+ ErrorMessage.ResumePrinterError,
+ (error as Error).message,
+ );
}
}