]> diplodocus.org Git - minc/commitdiff
(get_headers): Check errors on open.
authorepg <>
Sun, 25 Apr 2004 22:30:15 +0000 (22:30 +0000)
committerepg <>
Sun, 25 Apr 2004 22:30:15 +0000 (22:30 +0000)
minc

diff --git a/minc b/minc
index e0c5c7331d0155ca134c3eb4d78713f236aeb638..d008d663dd4030b534043f421cd40fd6737a5284 100755 (executable)
--- a/minc
+++ b/minc
@@ -432,7 +432,7 @@ sub get_headers {
     my $fieldname;              # unmolested header name
     my $contents;               # contents of header
 
     my $fieldname;              # unmolested header name
     my $contents;               # contents of header
 
-    open(MSG, $msg);
+    open(MSG, $msg) or die("open(MSG, $msg): $!");
     while (<MSG>) {
         chomp;
         if (length == 0) {
     while (<MSG>) {
         chomp;
         if (length == 0) {