Skip to content
Snippets Groups Projects
Commit 27137e55 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix RpcResult.Raise error code


A typo in the Raise() method of rpc.RpcResult means that any remote
errors will lack an appropriate error code; this will confuse e.g. RAPI
users.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent bd061c35
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ class RpcResult(object):
else:
ec = errors.OpExecError
if ecode is not None:
args = (msg, prereq)
args = (msg, ecode)
else:
args = (msg, )
raise ec(*args) # pylint: disable-msg=W0142
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment