aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-28 09:32:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-03-28 09:32:09 -0400
commit907dd88ceb10229eb4eb4231465fd3e9ff31077f (patch)
treeaa1afbcc2b2700ca9118e625ea57cad23ec33edd
parentde7444ca695b36dd6961055fc7b25d01b7f4c2b4 (diff)
downloadkutter-907dd88ceb10229eb4eb4231465fd3e9ff31077f.tar.gz
kutter-907dd88ceb10229eb4eb4231465fd3e9ff31077f.tar.xz
kutter-907dd88ceb10229eb4eb4231465fd3e9ff31077f.zip
msgproto: Propagate original error message in create_command()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/msgproto.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py
index 41f0a11b..a26bfbc4 100644
--- a/klippy/msgproto.py
+++ b/klippy/msgproto.py
@@ -321,11 +321,15 @@ class MessageParser:
else:
tval = value
argparts[name] = tval
+ except error as e:
+ raise
except:
#logging.exception("Unable to extract params")
raise error("Unable to extract params from: %s" % (msgname,))
try:
cmd = mp.encode_by_name(**argparts)
+ except error as e:
+ raise
except:
#logging.exception("Unable to encode")
raise error("Unable to encode: %s" % (msgname,))