mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
Fail more gracefully on unknown file name extensions.
This commit is contained in:
@@ -26,6 +26,7 @@ importGrammar pgf0 opts files =
|
|||||||
".pgf" -> do
|
".pgf" -> do
|
||||||
pgf2 <- mapM readPGF files >>= return . foldl1 unionPGF
|
pgf2 <- mapM readPGF files >>= return . foldl1 unionPGF
|
||||||
return $ unionPGF pgf0 pgf2
|
return $ unionPGF pgf0 pgf2
|
||||||
|
ext -> die $ "Unknown filename extension: " ++ show ext
|
||||||
|
|
||||||
importSource :: SourceGrammar -> Options -> [FilePath] -> IO SourceGrammar
|
importSource :: SourceGrammar -> Options -> [FilePath] -> IO SourceGrammar
|
||||||
importSource src0 opts files = do
|
importSource src0 opts files = do
|
||||||
|
|||||||
Reference in New Issue
Block a user