From 99dddc885fe2618df78943011a2f49693e57d661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Fri, 27 Sep 2024 11:05:13 +0300 Subject: [PATCH] subdevice FOTA - print download URL in failure The existing error log is not detailed enough, we should print out the offending URL so that it can be checked. --- edge-client/subdevice_fota.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/edge-client/subdevice_fota.cpp b/edge-client/subdevice_fota.cpp index 6eea1a3..e880cc3 100644 --- a/edge-client/subdevice_fota.cpp +++ b/edge-client/subdevice_fota.cpp @@ -254,6 +254,7 @@ int start_download(char* downloaded_path) { curl_easy_cleanup(curl_handle); curl_global_cleanup(); fclose(fwfile); + tr_error("can not download firmware %s, aborting", fota_ctx->fw_info->uri); subdevice_abort_update(FOTA_STATUS_DOWNLOAD_AUTH_NOT_GRANTED, "can not download firmware"); return FOTA_STATUS_DOWNLOAD_AUTH_NOT_GRANTED; }