Skip to content

Commit 6e4113f

Browse files
committedJun 23, 2015
[processing] show error message when execution of algorithm from console failed
1 parent 06d250e commit 6e4113f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎python/plugins/processing/core/Processing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,12 @@ def runAlgorithm(algOrName, onFinish, *args):
349349
if iface is not None :
350350
progress = MessageBarProgress(alg.name)
351351
ret = runalg(alg, progress)
352-
if onFinish is not None and ret:
353-
onFinish(alg, progress)
352+
if ret:
353+
if onFinish is not None:
354+
onFinish(alg, progress)
355+
else:
356+
print ("There were errors executing the algorithm.\n"
357+
"Check the QGIS log to get more information")
354358

355359
if iface is not None:
356360
QApplication.restoreOverrideCursor()

0 commit comments

Comments
 (0)
Please sign in to comment.