summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2020-01-13 13:11:32 +0000
committerMarc Espie <espie@cvs.openbsd.org>2020-01-13 13:11:32 +0000
commit2dbc51f496ab96b92346c303aa4b6f7b415dc22e (patch)
tree52cfe557e757bb1dc464eff915cc5f59312e0a55 /usr.sbin/pkg_add
parenta35198657cb4374c6634f23f8479ef61fe62c10a (diff)
nit, use "fatal" with parameters as intended
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 40c2f106f0f..c3c2fcdda96 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.165 2020/01/09 11:01:25 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.166 2020/01/13 13:11:31 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -987,7 +987,7 @@ sub ask_tree
}
my $pid = open(my $fh, "-|");
if (!defined $pid) {
- $state->fatal("cannot fork: $!");
+ $state->fatal("cannot fork: #1", $!);
}
if ($pid == 0) {
$ENV{FULLPATH} = 'Yes';