Skip to content

Commit

Permalink
Update swf.executor: add exception's class name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Leclercq committed Aug 7, 2014
1 parent e94514b commit 39e7594
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simpleflow/swf/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ def replay(self, history):
return [decision], {}

except Exception, err:
reason = 'Cannot replay the workflow "{}"'.format(err)
reason = 'Cannot replay the workflow {}({})'.format(
err.__class__.__name__,
err)
logger.exception(reason)

self.on_failure(reason)
Expand Down

0 comments on commit 39e7594

Please sign in to comment.