From dbcccbbff058acac55d373e8613651ad2504cc3d Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Fri, 6 Apr 2018 21:39:52 +0200 Subject: [PATCH] Print stack trace if the JSON could not be parsed This helps to identify errors in the response. Change-Id: Icda0919378ebf1deba3a4c7d6d6d010a09eed3ce --- src/org/lineageos/updater/misc/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 6b15e2d4..c2c8df61 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -136,7 +136,7 @@ public class Utils { Log.d(TAG, "Ignoring incompatible update " + update.getName()); } } catch (JSONException e) { - Log.e(TAG, "Could not parse update object, index=" + i); + Log.e(TAG, "Could not parse update object, index=" + i, e); } }