summaryrefslogtreecommitdiffhomepage
path: root/app/lib
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-04-18 15:30:26 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-04-19 12:42:49 +0100
commitaecfdb6543b1b875c02c06b7a6598208f4ab0fe3 (patch)
treef0c40f7ab3df337577531b76999026d846ace560 /app/lib
parent6401d48895dbcb622ff367c5abd3fae350b0c7ec (diff)
downloadmullvadvpn-aecfdb6543b1b875c02c06b7a6598208f4ab0fe3.tar.xz
mullvadvpn-aecfdb6543b1b875c02c06b7a6598208f4ab0fe3.zip
Add TODO comments about refactoring BackendError
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/backend.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 45a91a9a50..88e4277be6 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -40,6 +40,8 @@ export class BackendError extends Error {
static localizedMessage(type: ErrorType, cause: ?Error): string {
+ // TODO: since instanceof now works, BackendError can be replaced by a set
+ // of specific error types
switch(type) {
case 'NO_CREDIT':
return 'Buy more time, so you can continue using the internet securely';