bintray client show error msg
This commit is contained in:
parent
6d8543a942
commit
c956d79894
@ -117,7 +117,7 @@ String BintrayClient::getLatestVersion() const
|
|||||||
// Check for errors in parsing
|
// Check for errors in parsing
|
||||||
if (err)
|
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 version;
|
||||||
}
|
}
|
||||||
return doc["name"].as<String>();
|
return doc["name"].as<String>();
|
||||||
@ -142,7 +142,7 @@ String BintrayClient::getBinaryPath(const String &version) const
|
|||||||
JsonObject firstItem = doc[0];
|
JsonObject firstItem = doc[0];
|
||||||
if (err)
|
if (err)
|
||||||
{ //Check for errors in parsing
|
{ //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 path;
|
||||||
}
|
}
|
||||||
return "/" + getUser() + "/" + getRepository() + "/" + firstItem["path"].as<String>();
|
return "/" + getUser() + "/" + getRepository() + "/" + firstItem["path"].as<String>();
|
||||||
|
Loading…
Reference in New Issue
Block a user