summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-08-15 14:36:41 +0300
committerAndrej Mihajlov <and@mullvad.net>2019-08-16 15:21:07 +0300
commit3262edf3c60befe23a89ea64d4b47aee38fc06d1 (patch)
tree5ed9ad032753b0daef7f061718543b08826f1c5f /gui/src
parent9b49bf31659c8020fdc1f722f58065174c2a1181 (diff)
downloadmullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.tar.xz
mullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.zip
Localize "Invalid account number" error
Diffstat (limited to 'gui/src')
-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;
+ }
}
}