Skip to content

Commit

Permalink
[Processing] correctly report missing layers in postprocessing task
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Dec 13, 2017
1 parent 1b8fa82 commit 0858652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/Postprocessing.py
Expand Up @@ -77,6 +77,8 @@ def handleAlgorithmResults(alg, context, feedback=None, showResults=True):
if style:
layer.loadNamedStyle(style)
details.project.addMapLayer(context.temporaryLayerStore().takeMapLayer(layer))
else:
wrongLayers.append(str(l))
except Exception:
QgsMessageLog.logMessage(QCoreApplication.translate('Postprocessing', "Error loading result layer:") + "\n" + traceback.format_exc(), 'Processing', QgsMessageLog.CRITICAL)
wrongLayers.append(str(l))
Expand Down

0 comments on commit 0858652

Please sign in to comment.