]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
show error why output log append failed
authorElan Ruusamäe <glen@delfi.ee>
Sat, 12 Jan 2013 10:28:16 +0000 (12:28 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 12 Jan 2013 10:29:05 +0000 (12:29 +0200)
teeboth

diff --git a/teeboth b/teeboth
index caf4620ae6296a4af41b65b80b3e4092221a198f..d5983527f35b78137fffde4b7dca69e1687bd5de 100755 (executable)
--- a/teeboth
+++ b/teeboth
@@ -11,7 +11,7 @@ use IO::Select;
 my $out = shift @ARGV;
 die unless @ARGV;
 
-open my $fout, ">>", $out or die if $out;
+open my $fout, ">>", $out or die "Can't write to $out: $!" if $out;
 
 my $select = IO::Select->new();
 my $alive = 1;
This page took 0.033553 seconds and 4 git commands to generate.