mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 23:00:29 +00:00
Handle invalid chars better, and do small cleanups around error output. (#657)
This adds a test for invalid characters (that would've failed before, because the printed char isn't escaped). Not sure if there's a good way to test the PrintDiagnostic code, as it appears to occur on bison parser errors, which I'm just not sure how to trigger.
This commit is contained in:
1 parent
1ddb1a264a
commit
368fc0063c
6 files changed
+23
-14
No files matched your search
@@ -0,0 +1 @@
|
||||
�
|
||||
@@ -0,0 +1,2 @@
|
||||
1.1: invalid character '\xFE' in source file.
|
||||
EXIT CODE: 1
|
||||
Reference in new issue
Block a user