Skip to content

Commit

Permalink
[processing] More informative message when cannot compute gdal comman…
Browse files Browse the repository at this point in the history
…ds due to wrong params
  • Loading branch information
volaya committed Jan 6, 2016
1 parent 943b101 commit 41c9da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
Expand Up @@ -69,5 +69,7 @@ def parametersHaveChanged(self):
commands = self.alg.getConsoleCommands()
commands = [c for c in commands if c not in ['cmd.exe', '/C ']]
self.text.setPlainText(" ".join(commands))
except AlgorithmDialogBase.InvalidParameterValue, e:
self.text.setPlainText("Invalid value for parameter '%s'" % e.parameter.description)
except:
self.text.setPlainText("")

0 comments on commit 41c9da9

Please sign in to comment.