Skip to content

Commit

Permalink
Report HTTP response code for dictionary-not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 28, 2023
1 parent 596ae6b commit 697744a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unknown-words.sh
Expand Up @@ -1536,7 +1536,7 @@ get_extra_dictionary() {
fi
keep_headers=1 call_curl "$check_etag" "$check_etag_value" "$url" > "$dest"
if { [ -z "$response_code" ] || [ "$response_code" -ge 400 ] || [ "$response_code" -eq 000 ] ; } 2> /dev/null; then
echo "::error ::Failed to retrieve $extra_dictionary_url -- $url (dictionary-not-found)" >> "$early_warnings"
echo "::error ::Failed to retrieve $extra_dictionary_url -- HTTP $response_code for $url (dictionary-not-found)" >> "$early_warnings"
(
echo "Failed to retrieve $extra_dictionary_url ($url)"
cat "$response_headers"
Expand Down

0 comments on commit 697744a

Please sign in to comment.