Skip to content

Commit

Permalink
Add comment for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Oct 28, 2022
1 parent e8de327 commit 69c5417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devops/scripts/register_bundle_with_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ if [[ -n "$(echo "$get_result" | jq -r .id)" ]]; then
fi
else
error_code=$(echo "$get_result" | jq -r .status_code)
# 404 Not Found error at this point is fine => we want to continue to register the template
# For other errors, show the error and exit with non-zero result
if [[ "$error_code" != "404" ]]; then
echo "Error checking for existing template: $get_result"
exit 1
Expand Down

0 comments on commit 69c5417

Please sign in to comment.