Skip to content

Commit

Permalink
[processing tests] Improve test debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 15, 2016
1 parent 0e690fc commit 01cc455
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/processing/core/GeoAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
***************************************************************************
GeoAlgorithmExecutionException.py
GeoAlgorithm.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Expand Down Expand Up @@ -206,8 +206,10 @@ def execute(self, progress=SilentProgress(), model=None):
self.convertUnsupportedFormats(progress)
self.runPostExecutionScript(progress)
except GeoAlgorithmExecutionException as gaee:
lines = [self.tr('Uncaught error while executing algorithm')]
lines.append(traceback.format_exc())
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, gaee.msg)
raise gaee
raise GeoAlgorithmExecutionException(gaee.msg, lines, gaee)
except Exception as e:
# If something goes wrong and is not caught in the
# algorithm, we catch it here and wrap it
Expand Down

0 comments on commit 01cc455

Please sign in to comment.