toolhead: Forward original config error if raised in kinematics class

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-08-30 10:14:32 -04:00
parent 40b7ba5111
commit f3edea2943
1 changed files with 4 additions and 0 deletions

View File

@ -243,6 +243,10 @@ class ToolHead:
try:
mod = importlib.import_module('kinematics.' + kin_name)
self.kin = mod.load_kinematics(self, config)
except config.error as e:
raise
except self.printer.lookup_object('pins').error as e:
raise
except:
msg = "Error loading kinematics '%s'" % (kin_name,)
logging.exception(msg)