msgproto: Propagate original error message in create_command()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
de7444ca69
commit
907dd88ceb
|
@ -321,11 +321,15 @@ class MessageParser:
|
||||||
else:
|
else:
|
||||||
tval = value
|
tval = value
|
||||||
argparts[name] = tval
|
argparts[name] = tval
|
||||||
|
except error as e:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
#logging.exception("Unable to extract params")
|
#logging.exception("Unable to extract params")
|
||||||
raise error("Unable to extract params from: %s" % (msgname,))
|
raise error("Unable to extract params from: %s" % (msgname,))
|
||||||
try:
|
try:
|
||||||
cmd = mp.encode_by_name(**argparts)
|
cmd = mp.encode_by_name(**argparts)
|
||||||
|
except error as e:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
#logging.exception("Unable to encode")
|
#logging.exception("Unable to encode")
|
||||||
raise error("Unable to encode: %s" % (msgname,))
|
raise error("Unable to encode: %s" % (msgname,))
|
||||||
|
|
Loading…
Reference in New Issue