From 0224de02d52bbb925f3daa6dbeda2249f84368a9 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 12 Nov 2012 22:33:34 +0100 Subject: [PATCH] add an asterror message for ast_entfield_new with a wrong type --- ast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ast.c b/ast.c index 3575437..da51a46 100644 --- a/ast.c +++ b/ast.c @@ -488,6 +488,7 @@ ast_entfield* ast_entfield_new(lex_ctx ctx, ast_expression *entity, ast_expressi ast_instantiate(ast_entfield, ctx, ast_entfield_delete); if (field->expression.vtype != TYPE_FIELD) { + asterror(ctx, "ast_entfield_new with expression not of type field"); mem_d(self); return NULL; } -- 2.39.2