diff --git a/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp b/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp index 33b2f957419..6ba2f290aa8 100644 --- a/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp +++ b/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp @@ -143,6 +143,10 @@ bool updateEspHostedSlave() { // Step 15: Clean up allocated buffer free(buff); Serial.println(); + } else if (httpCode == HTTP_CODE_NOT_FOUND) { + Serial.println("ERROR: Update file not found!"); + } else { + Serial.printf("ERROR: HTTP request failed with code %d!", httpCode); } // Step 16: Close HTTP connection