Skip to content

Commit 20cc7ad

Browse files
committed
Include status code rather than errno for system calls
1 parent cbe22dc commit 20cc7ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-bin/make-man-pages.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sub _make_man {
5959
'-M', "section:$section",
6060
$input,
6161
'-o', $output,
62-
) == 0 or die "Failed to run pandoc: $!";
62+
) == 0 or die "Failed to run pandoc: $?";
6363
_pandoc_postprocess($output);
6464
}
6565
elsif ( $translator eq 'lowdown' ) {
@@ -72,7 +72,7 @@ sub _make_man {
7272
'-M', "section:$section",
7373
$input,
7474
'-o', $output,
75-
) == 0 or die "Failed to run lowdown: $!";
75+
) == 0 or die "Failed to run lowdown: $?";
7676
}
7777
}
7878

0 commit comments

Comments
 (0)