From 5764c0ed32dadd38308e82ce7d7a7f0b6c011e81 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 6 Nov 2009 15:33:25 -0800 Subject: [PATCH] ovsdb: Improve error message for transaction that uses unknown operation. Without this commit, misspelling an operation name provokes a mysterious error message. --- ovsdb/execution.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 25b34b196..f3e917260 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution.c @@ -133,8 +133,8 @@ ovsdb_execute(struct ovsdb *db, const struct json *params, if (executor) { error = executor(&x, &parser, result); } else { - error = ovsdb_syntax_error(operation, "unknown operation", - "No operation \"%s\"", op_name); + ovsdb_parser_raise_error(&parser, "No operation \"%s\"", + op_name); } } else { assert(ovsdb_parser_has_error(&parser)); -- 2.43.0