Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kaimi-io/yandex-music-download.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaimi <kaimi-@users.noreply.github.com>2019-08-30 15:37:06 +0300
committerGitHub <noreply@github.com>2019-08-30 15:37:06 +0300
commit996636e7ac2d8cf378f87e152a0a565035f18775 (patch)
treea08d6f2a0ac34ce0423c9778c7a6295e3b19ef4d
parent1f5a73f7e4ca281a683f6f5b6bec3fac090c3bc5 (diff)
parent65b43fe190f5ac5a2e76af1f0e84b2fdfd7705b6 (diff)
Merge pull request #16 from l29ah/stderr
report errors to stderr
-rwxr-xr-xsrc/ya.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ya.pl b/src/ya.pl
index bde01ec..f755527 100755
--- a/src/ya.pl
+++ b/src/ya.pl
@@ -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