Skip to content
Permalink
Browse files

[processing] fix log message when execution of algorithm from console…

… failed
  • Loading branch information
slarosa committed Sep 12, 2015
1 parent 99e7925 commit d28325c3e6373c7407bb1e673dfc8fb729110a3d
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/core/Processing.py
@@ -327,11 +327,11 @@ def runAlgorithm(algOrName, onFinish, *args):

msg = alg._checkParameterValuesBeforeExecuting()
if msg:
QgsMessageLog(Processing.tr('Unable to execute algorithm\n{0}').format(msg), Processing.tr("Processing"))
QgsMessageLog.logMessage(Processing.tr('Unable to execute algorithm\n{0}').format(msg), Processing.tr("Processing"))
return

if not alg.checkInputCRS():
QgsMessageLog(Processing.tr('Warning: Not all input layers use the same CRS.\nThis can cause unexpected results.'), Processing.tr("Processing"))
QgsMessageLog.logMessage(Processing.tr('Warning: Not all input layers use the same CRS.\nThis can cause unexpected results.'), Processing.tr("Processing"))

if iface is not None:
# Don't set the wait cursor twice, because then when you
@@ -350,7 +350,7 @@ def runAlgorithm(algOrName, onFinish, *args):
if onFinish is not None:
onFinish(alg, progress)
else:
QgsMessageLog(Processing.tr("There were errors executing the algorithm.\nCheck the QGIS log to get more information"), Processing.tr("Processing"))
QgsMessageLog.logMessage(Processing.tr("There were errors executing the algorithm."), Processing.tr("Processing"))

if iface is not None:
QApplication.restoreOverrideCursor()

0 comments on commit d28325c

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