diff options
author | Kaimi <kaimi-@users.noreply.github.com> | 2019-08-30 15:37:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 15:37:06 +0300 |
commit | 996636e7ac2d8cf378f87e152a0a565035f18775 (patch) | |
tree | a08d6f2a0ac34ce0423c9778c7a6295e3b19ef4d | |
parent | 1f5a73f7e4ca281a683f6f5b6bec3fac090c3bc5 (diff) | |
parent | 65b43fe190f5ac5a2e76af1f0e84b2fdfd7705b6 (diff) |
Merge pull request #16 from l29ah/stderr
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 |