mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] fixed wrong creation of error message in script algorithm
This commit is contained in:
parent
288b242aa9
commit
8ac22c5f30
@ -97,7 +97,7 @@ class ScriptAlgorithm(GeoAlgorithm):
|
||||
except:
|
||||
raise WrongScriptException(
|
||||
self.tr('Could not load script: %s\n'
|
||||
'Problem with line: %d', 'ScriptAlgorithm') % (self.descriptionFile, line))
|
||||
'Problem with line: %s', 'ScriptAlgorithm') % (self.descriptionFile, line))
|
||||
self.script += line
|
||||
line = lines.readline()
|
||||
lines.close()
|
||||
@ -230,7 +230,7 @@ class ScriptAlgorithm(GeoAlgorithm):
|
||||
else:
|
||||
raise WrongScriptException(
|
||||
self.tr('Could not load script: %s.\n'
|
||||
'Problem with line %d', 'ScriptAlgorithm') % (self.descriptionFile or '', line))
|
||||
'Problem with line "%s"', 'ScriptAlgorithm') % (self.descriptionFile or '', line))
|
||||
|
||||
def processDescriptionParameterLine(self, line):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user