Commit 376fb646 by Antti Kaihola

Add path of file being imported in case of import error when loading step definitions - fixes #299

parent 4539b446
......@@ -46,6 +46,8 @@ class FeatureLoader(object):
if 'empty module name' in err_msg.lower():
continue
else:
e.args = ('{0} when importing {1}'
.format(e, filename)),
raise e
reload(module) # always take fresh meat :)
......
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