From 068e47aa459028c260880ed5f27da2044cb79998 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 24 Feb 2010 20:28:52 -0500 Subject: [PATCH] catch failure to open the filetypes file --- IkiWiki/Plugin/highlight.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () { chomp; if (/^\$ext\((.*)\)=(.*)$/) { -- 2.26.2