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:
authorSergey Alirzaev <zl29ah@gmail.com>2019-08-15 00:31:46 +0300
committerSergey Alirzaev <zl29ah@gmail.com>2019-08-15 00:32:20 +0300
commit65b43fe190f5ac5a2e76af1f0e84b2fdfd7705b6 (patch)
treee56a2ca291d65fb2e3e0f61afa45e33093d98e6d
parent466336b857a9f6734bacfbb74d0fd8a12324166d (diff)
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