Skip to content

Commit

Permalink
Print error message when rest call fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Aug 30, 2024
1 parent 2a58771 commit 0f48ff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stm32h735g-dk/cmake/FindSlint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function(find_nightly_version out_version)
)
list(GET download_status 0 download_code)
if (NOT download_code EQUAL 0)
list(GET download_status 1 msg)
message("Failed to fetch JSON from GitHub API to obtain version for nightly release: ${msg}")
return()
endif()
file(READ "${nightly_release_json}" nightly_json)
Expand Down
2 changes: 2 additions & 0 deletions stm32h747i-disco/cmake/FindSlint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function(find_nightly_version out_version)
)
list(GET download_status 0 download_code)
if (NOT download_code EQUAL 0)
list(GET download_status 1 msg)
message("Failed to fetch JSON from GitHub API to obtain version for nightly release: ${msg}")
return()
endif()
file(READ "${nightly_release_json}" nightly_json)
Expand Down

0 comments on commit 0f48ff1

Please sign in to comment.