From f5ea31f35648f76e28be8218284ea696380dec74 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 12 Jun 2007 09:53:37 +0000 Subject: 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. --- usr.sbin/pkg_add/OpenBSD/PackingList.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/PackingList.pm') 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 # @@ -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; } -- cgit v1.2.3