diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-21 20:43:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-21 20:43:52 +0000 |
| commit | d47ba09743446f787d5b427e52d189cc91d47529 (patch) | |
| tree | 6b903e3fc50e0b973548abcce28be1e33053ee39 /src/check_expr.cpp | |
| parent | 6b6f72e7bd3030c53d7a59dacdcb28146340188d (diff) | |
Fix at error printing bug
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 5 |
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; } |