Skip to content
Permalink
Browse files

Improve debug output of processing tests

  • Loading branch information
m-kuhn committed Mar 14, 2016
1 parent fb3fcfa commit 9852d6d74ff74d006493af28edf6e969d5e78a53
Showing with 9 additions and 6 deletions.
  1. +9 −6 python/plugins/processing/core/GeoAlgorithmExecutionException.py
@@ -35,11 +35,14 @@ def __init__(self, msg, stack=None, cause=None):
self.cause = cause

def __str__(self):
msg = self.msg.split('\n')
msg = ' | ' + '\n | '.join(msg)
msg = self.msg.split(u'\n')
msg = u' | ' + u'\n | '.join(msg)

stack = '\n'.join(self.stack)
stack = stack.split('\n')
stack = ' ' + '\n '.join(stack)
try:
stack = u'\n'.join(self.stack)
except TypeError:
stack = repr(self.stack)
stack = stack.split(u'\n')
stack = u' ' + u'\n '.join(stack)

return '\n\n Message:\n{}\n\n Stack:\n\n{}'.format(msg, stack)
return u'\n\n Message:\n{}\n\n Stack:\n\n{}'.format(msg, stack)

0 comments on commit 9852d6d

Please sign in to comment.
You can’t perform that action at this time.