aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/highlight.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-24 20:28:52 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-24 20:28:52 -0500
commit068e47aa459028c260880ed5f27da2044cb79998 (patch)
tree8407806c3c0851712813a2acf44d66fff6387468 /IkiWiki/Plugin/highlight.pm
parentfeeacaba028afe2e0b8835e2ebedc930de0f33a5 (diff)
downloadikiwiki-068e47aa459028c260880ed5f27da2044cb79998.tar
ikiwiki-068e47aa459028c260880ed5f27da2044cb79998.tar.gz
catch failure to open the filetypes file
Diffstat (limited to 'IkiWiki/Plugin/highlight.pm')
-rw-r--r--IkiWiki/Plugin/highlight.pm2
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\((.*)\)=(.*)$/) {