Yeela Kaplan has uploaded a new change for review.

Change subject: jsonrpc: missing parameters on instantiation of Error
......................................................................

jsonrpc: missing parameters on instantiation of Error

Change-Id: I9648b2af7f0d5150238cd37cee809d23a5876f4c
Signed-off-by: Yeela Kaplan <[email protected]>
---
M lib/yajsonrpc/__init__.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/34/42334/1

diff --git a/lib/yajsonrpc/__init__.py b/lib/yajsonrpc/__init__.py
index 79162d6..3ddf500 100644
--- a/lib/yajsonrpc/__init__.py
+++ b/lib/yajsonrpc/__init__.py
@@ -517,7 +517,10 @@
             # Empty batch request
             if len(rawRequests) == 0:
                 ctx.addResponse(
-                    JsonRpcResponse(None, JsonRpcInvalidRequestError(),
+                    JsonRpcResponse(None,
+                                    JsonRpcInvalidRequestError(
+                                        'request batch is empty',
+                                        rawRequests),
                                     None))
                 ctx.sendReply()
                 return


-- 
To view, visit https://gerrit.ovirt.org/42334
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9648b2af7f0d5150238cd37cee809d23a5876f4c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to