From c956d79894619cc97ac590ed8c91356b121d2ae3 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 21 Jan 2023 19:09:53 +0100 Subject: [PATCH] bintray client show error msg --- lib/BintrayClient/src/BintrayClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BintrayClient/src/BintrayClient.cpp b/lib/BintrayClient/src/BintrayClient.cpp index 8aa658f4..59956981 100644 --- a/lib/BintrayClient/src/BintrayClient.cpp +++ b/lib/BintrayClient/src/BintrayClient.cpp @@ -117,7 +117,7 @@ String BintrayClient::getLatestVersion() const // Check for errors in parsing if (err) { - ESP_LOGE(TAG, "Error: Firmware version data not found."); + ESP_LOGE(TAG, "Error %s: Firmware version data not found.", err.c_str()); return version; } return doc["name"].as(); @@ -142,7 +142,7 @@ String BintrayClient::getBinaryPath(const String &version) const JsonObject firstItem = doc[0]; if (err) { //Check for errors in parsing - ESP_LOGE(TAG, "Error: Firmware download path not found."); + ESP_LOGE(TAG, "Error %s: Firmware download path not found.", err.c_str()); return path; } return "/" + getUser() + "/" + getRepository() + "/" + firstItem["path"].as();