diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2019-07-10 11:15:16 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2019-07-10 11:15:16 +0000 |
commit | 1bbc6b6552dfb281a056b8fe46871283070b9738 (patch) | |
tree | 6cc824bacadb805174263740fc8d7bc370510f90 /usr.sbin/pkg_add | |
parent | 90222ee556b9416639bbe4119c5334d87b35c789 (diff) |
yet another error
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 783f1257453..1ff26b855a5 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.181 2019/06/30 14:57:25 espie Exp $ +# $OpenBSD: Add.pm,v 1.182 2019/07/10 11:15:15 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -484,9 +484,10 @@ sub create_temp if (!defined $tempname) { if ($state->allow_nonroot($fullname)) { $state->errsay("Can't create temp file outside localbase for #1", $fullname); + $state->errsay(OpenBSD::Temp->last_error); return undef; } - $state->fatal("create temporary file in #1: #2", $d, $!); + $state->fatal(OpenBSD::Temp->last_error); } return ($fh, $tempname); } |