0

report errors to stderr

This commit is contained in:
Sergey Alirzaev
2019-08-15 00:31:46 +03:00
parent 466336b857
commit 65b43fe190

View File

@@ -1053,7 +1053,8 @@ sub info
# Actual terminal width detection? # Actual terminal width detection?
$msg = sprintf('%-80s', $msg); $msg = sprintf('%-80s', $msg);
print $msg; my $out = $type eq ERROR ? *STDERR : *STDOUT;
print $out $msg;
} }
sub progress sub progress