geturl: Don't suppress curl's STDERR

This makes it easier for users to troubleshoot problems.
This commit is contained in:
Richard Hansen 2024-05-25 16:59:53 -04:00
parent 09ce262c82
commit 09d8d0426e

View file

@ -2673,7 +2673,7 @@ sub curl_cmd {
print($tfh @params);
}
close($tfh);
my $reply = qx{ $system_curl --config $tmpfile 2>/dev/null; };
my $reply = qx{ $system_curl --config $tmpfile; };
if ((my $rc = $?>>8) != 0) {
warning("CURL error (%d) %s", $rc, $curl_codes{$rc} // "Unknown return code. Check $system_curl is installed and its manpage.");
}