on master help sign in
Improve error for bad escape characters
commit64b16e6b69c860e87225284c8e6b0eb78717bfaf authorEvan Czaplicki <evancz@users.noreply.github.com> dateSat 17 Dec 2016, 20:50 (10 years ago) parentb0cc791
1 file changed+4−4
src/Reporting/Error/Syntax.hs+4−4
src/Reporting/Error/Syntax.hs+4−4
@@ -463,11 +463,11 @@ problemToReport subRegion problem =
463463
464464 BadEscape ->
465465 parseReport
466− "Ran into a bad escape code."
466+ "A backslash starts an escaped character, but I do not recognize this one:"
467467 ( reflowParagraph
468− "Elm allows typical escape characters like \\n and \\t, but you can\
469− \ also use \\x0040 to refer to unicode characters by their hex code.\
470− \ It seems like something has gone wrong with one of these codes."
468+ "Elm allows typical escape characters like \\\\ and \\n and \\t. You can\
469+ \ also say \\u0040 to refer to unicode characters by their hex code.\
470+ \ Maybe there is some typo?"
471471 )
472472
473473 BadChar ->