Added errorneous response of InApp to toast

This commit is contained in:
Alexey Kulish 2016-06-15 14:19:37 +03:00
parent 29d1572380
commit 2176a23b86

View file

@ -460,13 +460,13 @@ public class InAppHelper {
} else { } else {
complain("SendToken Error: " complain("SendToken Error: "
+ obj.getString("error") + obj.getString("error")
+ " (userId=" + userId + " token=" + token + ")"); + " (userId=" + userId + " token=" + token + " response=" + result + ")");
} }
} catch (JSONException e) { } catch (JSONException e) {
logError("SendToken", e); logError("SendToken", e);
complain("SendToken Error: " complain("SendToken Error: "
+ (e.getMessage() != null ? e.getMessage() : "JSONException") + (e.getMessage() != null ? e.getMessage() : "JSONException")
+ " (userId=" + userId + " token=" + token + ")"); + " (userId=" + userId + " token=" + token + " response=" + result + ")");
} }
} }
if (listener != null) { if (listener != null) {