Add "ERROR" to all error diagnostics (#3251)

This makes the difference between errors and lower-level diagnostics
visible to users, and aligns the toolchain's behavior with the
expectations in `driver_fuzzer.cpp`.
This commit is contained in:
Geoff Romer
2023-09-26 16:52:49 +00:00
committed by GitHub
parent 491fa1bdd5
commit 7899154a21
176 changed files with 280 additions and 275 deletions
@@ -5,7 +5,7 @@
// AUTOUPDATE
fn F() {
// CHECK:STDERR: fail_else_expr_missing.carbon:[[@LINE+3]]:35: Expected expression.
// CHECK:STDERR: fail_else_expr_missing.carbon:[[@LINE+3]]:35: ERROR: Expected expression.
// CHECK:STDERR: var n: i32 = if true then 1 else;
// CHECK:STDERR: ^
var n: i32 = if true then 1 else;