From: Ben Pfaff Date: Fri, 6 Nov 2009 23:33:25 +0000 (-0800) Subject: ovsdb: Improve error message for transaction that uses unknown operation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5764c0ed32dadd38308e82ce7d7a7f0b6c011e81;p=openvswitch ovsdb: Improve error message for transaction that uses unknown operation. Without this commit, misspelling an operation name provokes a mysterious error message. --- diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 25b34b19..f3e91726 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));