catch failure to open the filetypes file

master
Joey Hess 2010-02-24 20:28:52 -05:00
parent feeacaba02
commit 068e47aa45
1 changed files with 1 additions and 1 deletions

View 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\((.*)\)=(.*)$/) {