Browse Source

Merge pull request #4176 from Feoramund/fix-context-error-msg

Remove extra format item at end of `context` error message
gingerBill 11 months ago
parent
commit
39b49cb6fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/check_expr.cpp

+ 1 - 1
src/check_expr.cpp

@@ -10928,7 +10928,7 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
 		case Token_context:
 		case Token_context:
 			{
 			{
 				if (c->proc_name.len == 0 && c->curr_proc_sig == nullptr) {
 				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;
 					return kind;
 				}
 				}
 				if (unparen_expr(c->assignment_lhs_hint) == node) {
 				if (unparen_expr(c->assignment_lhs_hint) == node) {