Skip to content

Commit

Permalink
Merge pull request #4176 from Feoramund/fix-context-error-msg
Browse files Browse the repository at this point in the history
Remove extra format item at end of `context` error message
  • Loading branch information
gingerBill authored Sep 1, 2024
2 parents dd1f151 + 9871ad5 commit 39b49cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10928,7 +10928,7 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
case Token_context:
{
if (c->proc_name.len == 0 && c->curr_proc_sig == nullptr) {
error(node, "'context' is only allowed within procedures %p", c->curr_proc_decl);
error(node, "'context' is only allowed within procedures");
return kind;
}
if (unparen_expr(c->assignment_lhs_hint) == node) {
Expand Down

0 comments on commit 39b49cb

Please sign in to comment.