From 7eedd18dec1c7613c035d9daab780bb515840f1d Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 15 Jan 2014 17:41:53 -0800 Subject: Make it more obvious when it's a server error --- src/github/daneren2005/dsub/service/parser/AbstractParser.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/github/daneren2005') 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; -- cgit v1.2.3