refactor(i18n): centralize unknownError and unify pdfToText note keys

This commit is contained in:
Sebastian Espei authored and GitHub committed 2026-04-17 14:40:02 +00:00
1 parent 0ea7c69b25
commit b9dacf5537
5 files changed
+6 -23

No files matched your search

+1 -3
View File
@@ -758,9 +758,7 @@ async function processSignature(): Promise<void> {
hideLoader();
console.error('Signing error:', error);
const errorMessage =
error instanceof Error
? error.message
: t('tools:digitalSignPdf.unknownError');
error instanceof Error ? error.message : t('common.unknownError');
// Check if this is a CORS/network error from certificate chain fetching
if (
+1 -1
View File
@@ -216,7 +216,7 @@ async function initializePage() {
} catch (e: unknown) {
hideLoader();
const errorMessage =
e instanceof Error ? e.message : t('tools:wasmSettings.unknownError');
e instanceof Error ? e.message : t('common.unknownError');
showAlert(
t('tools:wasmSettings.errorTitle'),
t('tools:wasmSettings.failedSave', { message: errorMessage })