diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-06-12 14:31:13 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-06-12 14:31:13 +0200 |
| commit | a6193ecb0974af6fc8677208e204b9064a9484dd (patch) | |
| tree | 2147ecef22e855b69aa8569120ad14d82f2061fa /gui/src/main/errors.ts | |
| parent | 601109ac7845bf603e4b2d17bb72f30401706b71 (diff) | |
| parent | 2eecab47023011f96d9f76ce13bfd05e113a6c5b (diff) | |
| download | mullvadvpn-a6193ecb0974af6fc8677208e204b9064a9484dd.tar.xz mullvadvpn-a6193ecb0974af6fc8677208e204b9064a9484dd.zip | |
Merge branch 'too-many-devices-view-isnt-shown-des-186'
Diffstat (limited to 'gui/src/main/errors.ts')
| -rw-r--r-- | gui/src/main/errors.ts | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/gui/src/main/errors.ts b/gui/src/main/errors.ts deleted file mode 100644 index 86b482f7bd..0000000000 --- a/gui/src/main/errors.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { messages } from '../shared/gettext'; - -export class InvalidAccountError extends Error { - constructor() { - super( - // TRANSLATORS: Error message shown above login input when trying to login with a non-existent - // TRANSLATORS: account number. - messages.pgettext('login-view', 'Invalid account number'), - ); - } -} - -export class CommunicationError extends Error { - constructor() { - super('api.mullvad.net is blocked, please check your firewall'); - } -} - -export class TooManyDevicesError extends Error { - constructor() { - super( - // TRANSLATORS: Error message shown above login input when trying to login to an account with - // TRANSLATORS: too many registered devices. - messages.pgettext('login-view', 'Too many devices'), - ); - } -} - -export class ListDevicesError extends Error { - constructor() { - super( - // TRANSLATORS: Error message shown above login input when trying to login but the app fails - // TRANSLATORS: to fetch the list of registered devices. - messages.pgettext('login-view', 'Failed to fetch list of devices'), - ); - } -} |
