diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-05 14:58:13 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-05 14:58:13 +0000 |
| commit | 67ce0ec29f55621a36ddc1bde83f23a51c9ce355 (patch) | |
| tree | 440ce8e65c29ca2f833bcb00e03630ec786e3056 /src/check_expr.cpp | |
| parent | 23c3573c307fc9b1c7aa2af2b445090543fd60d3 (diff) | |
Improve printing for unhandled cases by adding a new line before the cases
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 4184d5b30..4664d2244 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -8188,7 +8188,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type if (unhandled.count == 1) { error_no_newline(node, "Unhandled enumerated array case: %.*s", LIT(unhandled[0]->token.string)); } else { - error_no_newline(node, "Unhandled enumerated array cases: "); + error(node, "Unhandled enumerated array cases:"); for_array(i, unhandled) { Entity *f = unhandled[i]; error_line("\t%.*s\n", LIT(f->token.string)); |