diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-08-01 14:40:58 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-06 17:57:24 +0200 |
| commit | d06c70c53076cd73e863872e1b27a361521b94e5 (patch) | |
| tree | a0697e40e428b35bc006efda4887f7bc1a56d964 /app/errors.js | |
| parent | 3a161b24d17be193e10906324306802515c743f4 (diff) | |
| download | mullvadvpn-d06c70c53076cd73e863872e1b27a361521b94e5.tar.xz mullvadvpn-d06c70c53076cd73e863872e1b27a361521b94e5.zip | |
Remove friendly title/message from Errors and drop UnknownError
Instead produce the right messages based on context
Diffstat (limited to 'app/errors.js')
| -rw-r--r-- | app/errors.js | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/app/errors.js b/app/errors.js index 993b4d0ff1..7464851a1f 100644 --- a/app/errors.js +++ b/app/errors.js @@ -1,29 +1,15 @@ +// @flow + export class NoCreditError extends Error { constructor() { super("Account doesn't have enough credit available for connection"); } - - get userFriendlyTitle(): string { - return 'Out of time'; - } - - get userFriendlyMessage(): string { - return 'Buy more time, so you can continue using the internet securely'; - } } export class NoInternetError extends Error { constructor() { super('Internet connectivity is currently unavailable'); } - - get userFriendlyTitle(): string { - return 'Offline'; - } - - get userFriendlyMessage(): string { - return 'Your internet connection will be secured when you get back online'; - } } export class NoDaemonError extends Error { |
