From: kenstir Date: Sun, 3 Nov 2013 02:34:32 +0000 (-0400) Subject: Do not throw an empty ServerErrorMessage exception if the renewal succeeds. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a273c4586d290ef8f349d999a2aaeee9aab6ab9b;p=working%2FEvergreen.git Do not throw an empty ServerErrorMessage exception if the renewal succeeds. --- diff --git a/Open-ILS/src/Android/src/org/evergreen/android/accountAccess/AccountAccess.java b/Open-ILS/src/Android/src/org/evergreen/android/accountAccess/AccountAccess.java index 7a05395ee5..84930c08a1 100644 --- a/Open-ILS/src/Android/src/org/evergreen/android/accountAccess/AccountAccess.java +++ b/Open-ILS/src/Android/src/org/evergreen/android/accountAccess/AccountAccess.java @@ -691,7 +691,7 @@ public class AccountAccess { Map resp = (Map) a_lot; - if (resp.get("textcode") != null) { + if (resp.get("textcode") != null && !resp.get("textcode").equals("SUCCESS")) { if (resp.get("textcode").equals("MAX_RENEWALS_REACHED")) throw new MaxRenewalsException(); throw new ServerErrorMessage(resp.get("desc").toString());