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
...@@ -160,7 +160,7 @@ class RpcResult(object): ...@@ -160,7 +160,7 @@ class RpcResult(object):
else: else:
ec = errors.OpExecError ec = errors.OpExecError
if ecode is not None: if ecode is not None:
args = (msg, prereq) args = (msg, ecode)
else: else:
args = (msg, ) args = (msg, )
raise ec(*args) # pylint: disable-msg=W0142 raise ec(*args) # pylint: disable-msg=W0142
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment