From b49ab7b8ce01ec382461912f27be074f99633a1a Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 30 May 2024 10:37:15 -0700 Subject: [PATCH] dl/remcheck: show the return code, not the raw error This is much easier to look up in libcurl-errors(3). --- dl/remcheck.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dl/remcheck.pl b/dl/remcheck.pl index f42303cf58..8a2fb71f15 100755 --- a/dl/remcheck.pl +++ b/dl/remcheck.pl @@ -169,7 +169,7 @@ sub geturl { CGI::escapeHTML($url) . "\"\n"; my @content = `$curlcmd \"$url\"`; if($?) { - logmsg " Failed with error $?\n"; + logmsg " Failed with error " . ($? >> 8) . "\n"; @content = (); } if($head) {