From 01cc455d2dcbaa1c36f2d7edbe5c29a25f263371 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 15 Mar 2016 11:05:03 +0100 Subject: [PATCH] [processing tests] Improve test debug messages --- python/plugins/processing/core/GeoAlgorithm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/core/GeoAlgorithm.py b/python/plugins/processing/core/GeoAlgorithm.py index e5d9ef51051..34d24e57f21 100644 --- a/python/plugins/processing/core/GeoAlgorithm.py +++ b/python/plugins/processing/core/GeoAlgorithm.py @@ -2,7 +2,7 @@ """ *************************************************************************** - GeoAlgorithmExecutionException.py + GeoAlgorithm.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya @@ -206,8 +206,10 @@ class GeoAlgorithm: 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