@@ -62,6 +62,7 @@ data ParseException = NonScalarKey
6262 | OtherParseException SomeException
6363 | NonStringKeyAlias Y.AnchorName Value
6464 | CyclicIncludes
65+ | LoadSettingsException FilePath ParseException
6566 deriving (Show, Typeable)
6667
6768instance Exception ParseException where
@@ -113,6 +114,7 @@ prettyPrintParseException pe = case pe of
113114 , " Value: " ++ show value
114115 ]
115116 CyclicIncludes -> "Cyclic includes"
117+ LoadSettingsException fp exc -> "Could not parse file as YAML: " ++ fp ++ "\n" ++ prettyPrintParseException exc
116118
117119defineAnchor :: Value -> String -> ReaderT JSONPath (ConduitM e o Parse) ()
118120defineAnchor value name = modify (modifyAnchors $ Map.insert name value)