mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 17:34:52 +10:00
fix issues brought up by coderabbit
This commit is contained in:
@@ -17,8 +17,8 @@ export async function dynamicActivate(locale: string) {
|
|||||||
if (dayjsLocales[locale]) {
|
if (dayjsLocales[locale]) {
|
||||||
dayjs.locale(await dayjsLocales[locale]());
|
dayjs.locale(await dayjsLocales[locale]());
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line lingui/no-unlocalized-strings
|
||||||
console.error(error);
|
throw new Error(`Failed to load messages for locale: ${locale}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,8 +204,10 @@ export class PrinterService {
|
|||||||
|
|
||||||
return resumeUrl;
|
return resumeUrl;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
throw new InternalServerErrorException(
|
||||||
console.trace(error);
|
ErrorMessage.ResumePrinterError,
|
||||||
|
(error as Error).message,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user