]> sipb.mit.edu Git - ikiwiki.git/commitdiff
catch failure to open the filetypes file
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 25 Feb 2010 01:28:52 +0000 (20:28 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 25 Feb 2010 01:28:52 +0000 (20:28 -0500)
IkiWiki/Plugin/highlight.pm

index 947fb692e5ab8fbe103f29a20d23fd969b47c235..e517ac5c06aa425771dcac7256a8e3127da8d3bb 100644 (file)
@@ -80,7 +80,7 @@ my %highlighters;
 
 # Parse highlight's config file to get extension => language mappings.
 sub read_filetypes () {
-       open (IN, $filetypes);
+       open (IN, $filetypes) || error("$filetypes: $!");
        while (<IN>) {
                chomp;
                if (/^\$ext\((.*)\)=(.*)$/) {