mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 19:26:45 +00:00
parseFormatSpec: cleaner error message for invalid extensions.
This commit is contained in:
@@ -624,8 +624,8 @@ parseFormatSpec = parse formatSpec ""
|
||||
Just n -> return n
|
||||
Nothing
|
||||
| name == "lhs" -> return Ext_literate_haskell
|
||||
| otherwise -> Prelude.fail $
|
||||
"Unknown extension: " ++ name
|
||||
| otherwise -> unexpected $
|
||||
"unknown extension: " ++ name
|
||||
return $ \(extsToEnable, extsToDisable) ->
|
||||
case polarity of
|
||||
'+' -> (ext : extsToEnable, extsToDisable)
|
||||
|
||||
Reference in New Issue
Block a user