aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-15 17:41:53 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-15 17:41:53 -0800
commit7eedd18dec1c7613c035d9daab780bb515840f1d (patch)
treebe8aea70bbfddb6ad30be0d18059061b54e7ddc0 /src/github/daneren2005
parent4fa8a0b25d9cd56ef92ed6300a05e47a05ac51e2 (diff)
downloaddsub-7eedd18dec1c7613c035d9daab780bb515840f1d.tar.gz
dsub-7eedd18dec1c7613c035d9daab780bb515840f1d.tar.bz2
dsub-7eedd18dec1c7613c035d9daab780bb515840f1d.zip
Make it more obvious when it's a server error
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/parser/AbstractParser.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/AbstractParser.java b/src/github/daneren2005/dsub/service/parser/AbstractParser.java
index 1a457754..9db40dad 100644
--- a/src/github/daneren2005/dsub/service/parser/AbstractParser.java
+++ b/src/github/daneren2005/dsub/service/parser/AbstractParser.java
@@ -50,6 +50,9 @@ public abstract class AbstractParser {
int code = getInteger("code");
String message;
switch (code) {
+ case 0:
+ message = context.getResources().getString(R.string.parser_server_error, get("message"));
+ break;
case 20:
message = context.getResources().getString(R.string.parser_upgrade_client);
break;