summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingList.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-12 09:53:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-12 09:53:37 +0000
commitf5ea31f35648f76e28be8218284ea696380dec74 (patch)
tree0280077a655a023ec2ab4dd1ac8554eaa7d41c92 /usr.sbin/pkg_add/OpenBSD/PackingList.pm
parent5d44a7a1991e292bfc38c019d99817638bc703fa (diff)
tidy error messages: uses $! more consistently, do not append \n on die,
do append \n on warn. Fix the two cases where the temp dir vanished too soon: not copying +DESC should have been apparent. Not finding a +DISPLAY file is not a reason for burping all over the place.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingList.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingList.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
index cde7c0be3db..e4d29a8ce06 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.77 2007/06/06 12:32:09 espie Exp $
+# $OpenBSD: PackingList.pm,v 1.78 2007/06/12 09:53:36 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -320,7 +320,7 @@ sub addunique
my ($plist, $object) = @_;
my $category = $object->category;
if (defined $plist->{$category}) {
- die "Duplicate $category in plist\n";
+ die "Duplicate $category in plist";
}
$plist->{$category} = $object;
}