Skip to content
Permalink
Browse files

[processing] show error message when execution of algorithm from cons…

…ole failed
  • Loading branch information
volaya committed Jun 23, 2015
1 parent 06d250e commit 6e4113f0008d0747b3bbce8a6e9fcbfe36b2be9e
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/core/Processing.py
@@ -349,8 +349,12 @@ def runAlgorithm(algOrName, onFinish, *args):
if iface is not None :
progress = MessageBarProgress(alg.name)
ret = runalg(alg, progress)
if onFinish is not None and ret:
onFinish(alg, progress)
if ret:
if onFinish is not None:
onFinish(alg, progress)
else:
print ("There were errors executing the algorithm.\n"
"Check the QGIS log to get more information")

if iface is not None:
QApplication.restoreOverrideCursor()

0 comments on commit 6e4113f

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