Skip to content

Commit

Permalink
log error and stacktrace when impl file load fails (#230)
Browse files Browse the repository at this point in the history
* log error and stacktrace when impl file load fails

fixes #228

Signed-off-by: sriv <[email protected]>

* fix grpc versions, dependabot can update

Signed-off-by: sriv <[email protected]>
  • Loading branch information
sriv authored Mar 18, 2021
1 parent 79bc206 commit bb5b4ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getgauge/impl_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _import_file(base_dir, file_path):
if _has_methods_with_gauge_decoratores(c[1]):
update_step_resgistry_with_class(c[1](), file_path) # c[1]() will create a new instance of the class
except:
logger.fatal('Exception occurred while loading step implementations from file: {}.\n'.format(rel_path, traceback.format_exc()))
logger.fatal('Exception occurred while loading step implementations from file: {}.\n{}'.format(rel_path, traceback.format_exc()))

# Inject instace in each class method (hook/step)
def update_step_resgistry_with_class(instance, file_path):
Expand Down
2 changes: 1 addition & 1 deletion python.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "python",
"version": "0.3.14",
"version": "0.3.15",
"description": "Python support for gauge",
"run": {
"windows": [
Expand Down

0 comments on commit bb5b4ee

Please sign in to comment.