]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Common.pm
croak in subroutines
[debbugs.git] / Debbugs / Common.pm
index 9305d3f161e27bf410394b3412d385b9c9fb617d..276cbd0fdfc46217a262055f363db6d4d1af6c5c 100644 (file)
@@ -431,7 +431,7 @@ sub __add_to_hash {
     }
     $type //= 'address';
     my $fh = IO::File->new($fn,'r') or
-       die "Unable to open $fn for reading: $!";
+       croak "Unable to open $fn for reading: $!";
     binmode($fh,':encoding(UTF-8)');
     while (<$fh>) {
        chomp;