Skip to content

Commit

Permalink
[processing] show error message when execution of algorithm from cons…
Browse files Browse the repository at this point in the history
…ole failed
  • Loading branch information
volaya committed Jun 23, 2015
1 parent 06d250e commit 6e4113f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/core/Processing.py
Expand Up @@ -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()
Expand Down

0 comments on commit 6e4113f

Please sign in to comment.