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 --- res/values/strings.xml | 1 + src/github/daneren2005/dsub/service/parser/AbstractParser.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index 33edb30b..d62e8ea9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -436,6 +436,7 @@ Wrong username or password. Not authorized. Check user permissions in Subsonic server. Got %d artists. + Server error: %s Refresh Select folder 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