summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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';