mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Merge pull request #4176 from Feoramund/fix-context-error-msg
Remove extra format item at end of `context` error message
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user