Skip to content

Commit 01cc455

Browse files
committedMar 15, 2016
[processing tests] Improve test debug messages
1 parent 0e690fc commit 01cc455

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎python/plugins/processing/core/GeoAlgorithm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
***************************************************************************
5-
GeoAlgorithmExecutionException.py
5+
GeoAlgorithm.py
66
---------------------
77
Date : August 2012
88
Copyright : (C) 2012 by Victor Olaya
@@ -206,8 +206,10 @@ def execute(self, progress=SilentProgress(), model=None):
206206
self.convertUnsupportedFormats(progress)
207207
self.runPostExecutionScript(progress)
208208
except GeoAlgorithmExecutionException as gaee:
209+
lines = [self.tr('Uncaught error while executing algorithm')]
210+
lines.append(traceback.format_exc())
209211
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, gaee.msg)
210-
raise gaee
212+
raise GeoAlgorithmExecutionException(gaee.msg, lines, gaee)
211213
except Exception as e:
212214
# If something goes wrong and is not caught in the
213215
# algorithm, we catch it here and wrap it

0 commit comments

Comments
 (0)
Please sign in to comment.