2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

jsonrpc-server: Report monitor session ID properly in error message.

The error message in question is about the monitor session ID but it
actually reports the JSON-RPC request ID instead, which is surprising.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
Ben Pfaff 2017-08-25 11:25:34 -07:00
parent f0e65e6702
commit a01ca4ee69

View File

@ -1415,7 +1415,7 @@ ovsdb_jsonrpc_monitor_cond_change(struct ovsdb_jsonrpc_session *s,
m = ovsdb_jsonrpc_monitor_find(s, params->u.array.elems[0]);
if (!m) {
error = ovsdb_syntax_error(request_id, NULL,
error = ovsdb_syntax_error(params->u.array.elems[0], NULL,
"unknown monitor session");
goto error;
}