aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-21 20:43:52 +0000
committergingerBill <bill@gingerbill.org>2024-03-21 20:43:52 +0000
commitd47ba09743446f787d5b427e52d189cc91d47529 (patch)
tree6b903e3fc50e0b973548abcce28be1e33053ee39 /src/check_expr.cpp
parent6b6f72e7bd3030c53d7a59dacdcb28146340188d (diff)
Fix at error printing bug
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 97ceea600..bb573e1e4 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -6138,7 +6138,10 @@ gb_internal bool evaluate_where_clauses(CheckerContext *ctx, Ast *call_expr, Sco
}
}
- if (call_expr) error(call_expr, "at caller location");
+ if (call_expr) {
+ TokenPos pos = ast_token(call_expr).pos;
+ error_line("%s at caller location\n", token_pos_to_string(pos));
+ }
}
return false;
}