diff options
author | Sergey Alirzaev <zl29ah@gmail.com> | 2019-08-15 00:31:46 +0300 |
---|---|---|
committer | Sergey Alirzaev <zl29ah@gmail.com> | 2019-08-15 00:32:20 +0300 |
commit | 65b43fe190f5ac5a2e76af1f0e84b2fdfd7705b6 (patch) | |
tree | e56a2ca291d65fb2e3e0f61afa45e33093d98e6d | |
parent | 466336b857a9f6734bacfbb74d0fd8a12324166d (diff) |
report errors to stderr
-rwxr-xr-x | src/ya.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1053,7 +1053,8 @@ sub info # Actual terminal width detection? $msg = sprintf('%-80s', $msg); - print $msg; + my $out = $type eq ERROR ? *STDERR : *STDOUT; + print $out $msg; } sub progress |