mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
[processing] fix log message when execution of algorithm from console failed
This commit is contained in:
parent
99e7925981
commit
d28325c3e6
@ -327,11 +327,11 @@ class Processing:
|
|||||||
|
|
||||||
msg = alg._checkParameterValuesBeforeExecuting()
|
msg = alg._checkParameterValuesBeforeExecuting()
|
||||||
if msg:
|
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
|
return
|
||||||
|
|
||||||
if not alg.checkInputCRS():
|
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:
|
if iface is not None:
|
||||||
# Don't set the wait cursor twice, because then when you
|
# Don't set the wait cursor twice, because then when you
|
||||||
@ -350,7 +350,7 @@ class Processing:
|
|||||||
if onFinish is not None:
|
if onFinish is not None:
|
||||||
onFinish(alg, progress)
|
onFinish(alg, progress)
|
||||||
else:
|
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:
|
if iface is not None:
|
||||||
QApplication.restoreOverrideCursor()
|
QApplication.restoreOverrideCursor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user