X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/8faea25cdcdb8e67aee9408965ce6d990d6f51e2..23a2ab419e0abe297f5a717e90318686d8bcb15e:/mr diff --git a/mr b/mr index 1aee75a..dd55fb8 100755 --- a/mr +++ b/mr @@ -580,9 +580,9 @@ sub mrs { #{{{ pipe(my $outfh, CHILD_STDOUT); pipe(my $errfh, CHILD_STDERR); unless (my $pid = fork) { - die "cannot fork: $!" unless defined $pid; - open(STDOUT, ">&CHILD_STDOUT") || die "reopen stdout: $!"; - open(STDERR, ">&CHILD_STDERR") || die "reopen stderr: $!"; + die "mr $action: cannot fork: $!" unless defined $pid; + open(STDOUT, ">&CHILD_STDOUT") || die "mr $action cannot reopen stdout: $!"; + open(STDERR, ">&CHILD_STDERR") || die "mr $action cannot reopen stderr: $!"; close CHILD_STDOUT; close CHILD_STDERR; close $outfh;