mirror of
https://github.com/Mesabloo/diagnose.git
synced 2024-11-22 09:42:01 +03:00
remove empty expected messages
This commit is contained in:
parent
488c3a6a4d
commit
baf3c56ff8
@ -70,7 +70,7 @@ diagnosticFromParseError isError code msg (fromMaybe [] -> defaultHints) error =
|
||||
]
|
||||
<> [ (source, marker) | msg <- messages, let marker = This $ fromString msg
|
||||
]
|
||||
<> [(source, Where $ fromString $ "expecting any of " <> intercalate ", " expectedList)]
|
||||
<> [(source, Where $ fromString $ "expecting any of " <> intercalate ", " (filter (not . null) expectedList))]
|
||||
|
||||
-- | Generates an error diagnostic from a 'PE.ParseError'.
|
||||
errorDiagnosticFromParseError ::
|
||||
|
Loading…
Reference in New Issue
Block a user