]> diplodocus.org Git - minc/commitdiff
use exit_msg to report $?
authorEric Gillespie <epg@pretzelnet.org>
Wed, 10 Dec 2014 08:31:33 +0000 (00:31 -0800)
committerEric Gillespie <epg@pretzelnet.org>
Wed, 10 Dec 2014 08:31:33 +0000 (00:31 -0800)
minc

diff --git a/minc b/minc
index 99b39f4..49fb5fd 100755 (executable)
--- 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 {