summaryrefslogtreecommitdiffhomepage
path: root/app/errors.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-08-07 11:03:11 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-07 11:03:11 +0200
commit858ded2aa27ab9c86ecf79c1702ef07a2bdf60fe (patch)
treec279d261fad33222c3fb7e0c45904b2915f21f1b /app/errors.js
parent83ae95e38026c16703a50a78966d583280010f3d (diff)
parent7ca1a8e1a3eecd18ee4acea2007b22092da97fd9 (diff)
downloadmullvadvpn-858ded2aa27ab9c86ecf79c1702ef07a2bdf60fe.tar.xz
mullvadvpn-858ded2aa27ab9c86ecf79c1702ef07a2bdf60fe.zip
Merge branch 'update-flow-v0.78'
Diffstat (limited to 'app/errors.js')
-rw-r--r--app/errors.js18
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 {