From: Eric Gillespie Date: Wed, 10 Dec 2014 08:31:33 +0000 (-0800) Subject: use exit_msg to report $? X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/ca3270e34fd0e3e71355b1d8ec4a37881f081465?ds=inline use exit_msg to report $? --- diff --git a/minc b/minc index 99b39f4..49fb5fd 100755 --- a/minc +++ b/minc @@ -892,7 +892,7 @@ if (!caller()) { chomp(@files = <$fh>); if (!close($fh)) { $! == 0 or die("open(mhpath|): $!"); - die("mhpath exited $?"); + die('mhpath '. exit_msg($?)); } @files > 0 or exit 0; } else {