diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2018-04-18 15:30:26 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-04-19 12:42:49 +0100 |
| commit | aecfdb6543b1b875c02c06b7a6598208f4ab0fe3 (patch) | |
| tree | f0c40f7ab3df337577531b76999026d846ace560 /app/lib | |
| parent | 6401d48895dbcb622ff367c5abd3fae350b0c7ec (diff) | |
| download | mullvadvpn-aecfdb6543b1b875c02c06b7a6598208f4ab0fe3.tar.xz mullvadvpn-aecfdb6543b1b875c02c06b7a6598208f4ab0fe3.zip | |
Add TODO comments about refactoring BackendError
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/backend.js | 2 |
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'; |
