aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-05 14:58:13 +0000
committergingerBill <bill@gingerbill.org>2022-02-05 14:58:13 +0000
commit67ce0ec29f55621a36ddc1bde83f23a51c9ce355 (patch)
tree440ce8e65c29ca2f833bcb00e03630ec786e3056 /src/check_stmt.cpp
parent23c3573c307fc9b1c7aa2af2b445090543fd60d3 (diff)
Improve printing for unhandled cases by adding a new line before the cases
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 2d85db82c..7cae1893f 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1065,7 +1065,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) {
if (unhandled.count == 1) {
error_no_newline(node, "Unhandled switch case: %.*s", LIT(unhandled[0]->token.string));
} else {
- error_no_newline(node, "Unhandled switch cases: ");
+ error(node, "Unhandled switch cases:");
for_array(i, unhandled) {
Entity *f = unhandled[i];
error_line("\t%.*s\n", LIT(f->token.string));