Skip to content

Commit

Permalink
subdevice FOTA - print download URL in failure
Browse files Browse the repository at this point in the history
The existing error log is not detailed enough, we should print out
the offending URL so that it can be checked.
  • Loading branch information
JanneKiiskila committed Sep 27, 2024
1 parent 2c901b8 commit 99dddc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edge-client/subdevice_fota.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 99dddc8

Please sign in to comment.