Skip to content

Commit

Permalink
dl/remcheck: show the return code, not the raw error
Browse files Browse the repository at this point in the history
This is much easier to look up in libcurl-errors(3).
  • Loading branch information
dfandrich committed May 30, 2024
1 parent 70e10b9 commit b49ab7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dl/remcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ sub geturl {
CGI::escapeHTML($url) . "</a>\"\n";
my @content = `$curlcmd \"$url\"`;
if($?) {
logmsg " Failed with error $?\n";
logmsg " Failed with error " . ($? >> 8) . "\n";
@content = ();
}
if($head) {
Expand Down

0 comments on commit b49ab7b

Please sign in to comment.