[processing] More informative message when cannot compute gdal commands due to wrong params

This commit is contained in:
volaya 2016-01-06 10:35:53 +01:00
parent 943b101501
commit 41c9da9b0b

View File

@ -69,5 +69,7 @@ class GdalParametersPanel(ParametersPanel):
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("")