Make an error message read better / easier to understand
commit7d6faf8388c87bbe612a04fb84be2c1a33ac2060
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateWed 20 Jun 2018, 22:29 (8 years ago)
parent3415241
compiler/src/Reporting/Error/Canonicalize.hs+3−2
@@ -189,10 +189,11 @@ toReport source err =
189189 Report.toCodeSnippet source region Nothing
190190 (
191191 D.reflow $
192− "The `" <> N.toString name <> "` " <> thing <> " was given " <> D.args actual <> ":"
192+ "The `" <> N.toString name <> "` " <> thing <> " needs "
193+ <> D.args expected <> " but I see " <> show actual <> " instead:"
193194 ,
194195 D.reflow $
195− "But it needs " <> D.args expected <> ". What is missing? Are some parentheses misplaced?"
196+ "What is missing? Are some parentheses misplaced?"
196197 )
197198
198199 else