Throw a more user friendly exception.
@@ -53,8 +53,10 @@ def get_runner(module_name, config=None):
# TODO: Explore modifying this to support register_plugin
module = register_runner(module_name)
except Exception as e:
- LOG.exception('Failed to import module %s.', module_name)
- raise ActionRunnerCreateError(e)
+ msg = ('Failed to import runner module %s' % module_name)
+ LOG.exception(msg)
+
+ raise ActionRunnerCreateError('%s\n\n%s' % (msg, str(e)))
LOG.debug('Instance of runner module: %s', module)
