summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 54cf11ed05..d7e13615f9 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1037,7 +1037,11 @@ class ApplicationMain {
} catch (error) {
log.error(`Failed to login: ${error.message}`);
- throw error;
+ if (error instanceof InvalidAccountError) {
+ throw Error(messages.gettext('Invalid account number'));
+ } else {
+ throw error;
+ }
}
}