diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-08-15 14:36:41 +0300 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-08-16 15:21:07 +0300 |
| commit | 3262edf3c60befe23a89ea64d4b47aee38fc06d1 (patch) | |
| tree | 5ed9ad032753b0daef7f061718543b08826f1c5f /gui/src/main | |
| parent | 9b49bf31659c8020fdc1f722f58065174c2a1181 (diff) | |
| download | mullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.tar.xz mullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.zip | |
Localize "Invalid account number" error
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/index.ts | 6 |
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; + } } } |
