diff mbox series

[nft,v2,09/14] JSON: Improve prefix expression parsing error message a bit

Message ID 20180528165109.15992-10-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series JSON: Some minor schema changes | expand

Commit Message

Phil Sutter May 28, 2018, 4:51 p.m. UTC
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 src/parser_json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/parser_json.c b/src/parser_json.c
index bd1c0a04993c8..432991fa152d4 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -951,7 +951,7 @@  static struct expr *json_parse_prefix_expr(struct json_ctx *ctx,
 
 	expr = json_parse_primary_expr(ctx, addr);
 	if (!expr) {
-		json_error(ctx, "Invalid prefix in prefix expr.");
+		json_error(ctx, "Invalid address in prefix expr.");
 		return NULL;
 	}
 	return prefix_expr_alloc(int_loc, expr, len);