Fix at error printing bug

This commit is contained in:
gingerBill
2024-03-21 20:43:52 +00:00
parent 6b6f72e7bd
commit d47ba09743

View File

@@ -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;
}