summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-29 01:40:00 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-29 01:40:00 -0400
commit487dd17039d4036cc83dfbe866c69802a4a67bdb (patch)
treecae8d0d44fd841640bc1995e81affd3cbb9490a3 /Debian/Debhelper/Dh_Lib.pm
parent4415a1b3d5adf1dc9ae9c9ef0e85e72d072c74eb (diff)
Add missing $! to error message when the log can't be opened.
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index badbe87..d26b7ea 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -117,7 +117,7 @@ sub END {
my $cmd=basename($0);
foreach my $package (@{$dh{DOPACKAGES}}) {
my $ext=pkgext($package);
- open(LOG, ">>", "debian/${ext}debhelper.log") || error("failed to write to log");
+ open(LOG, ">>", "debian/${ext}debhelper.log") || error("failed to write to log: $!");
print LOG $cmd."\n";
close LOG;
}