Skip to content

Commit

Permalink
[processing] fix log message when execution of algorithm from console…
Browse files Browse the repository at this point in the history
… failed
  • Loading branch information
slarosa committed Sep 12, 2015
1 parent 99e7925 commit d28325c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/core/Processing.py
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit d28325c

Please sign in to comment.