1
0
forked from GitHub/gf-core

Fail more gracefully on unknown file name extensions.

This commit is contained in:
bjorn
2008-10-02 12:32:03 +00:00
parent 3d2465bb37
commit 7c30f07f75

View File

@@ -26,6 +26,7 @@ importGrammar pgf0 opts files =
".pgf" -> do
pgf2 <- mapM readPGF files >>= return . foldl1 unionPGF
return $ unionPGF pgf0 pgf2
ext -> die $ "Unknown filename extension: " ++ show ext
importSource :: SourceGrammar -> Options -> [FilePath] -> IO SourceGrammar
importSource src0 opts files = do