]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/highlight.pm
catch failure to open the filetypes file
[ikiwiki.git] / 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\((.*)\)=(.*)$/) {