diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-02-24 20:28:52 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-02-24 20:28:52 -0500 |
commit | 068e47aa459028c260880ed5f27da2044cb79998 (patch) | |
tree | 8407806c3c0851712813a2acf44d66fff6387468 /IkiWiki/Plugin | |
parent | feeacaba028afe2e0b8835e2ebedc930de0f33a5 (diff) |
catch failure to open the filetypes file
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/highlight.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm index 947fb692e..e517ac5c0 100644 --- a/IkiWiki/Plugin/highlight.pm +++ b/IkiWiki/Plugin/highlight.pm @@ -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\((.*)\)=(.*)$/) { |