Skip to content

Commit

Permalink
fix issues brought up by coderabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Jan 11, 2025
1 parent 9b20c46 commit 3b73dcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/client/src/libs/lingui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}
6 changes: 4 additions & 2 deletions apps/server/src/printer/printer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}

Expand Down

0 comments on commit 3b73dcf

Please sign in to comment.