Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed wrong creation of error message in script algorithm
  • Loading branch information
volaya committed Apr 28, 2015
1 parent 288b242 commit 8ac22c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -97,7 +97,7 @@ def defineCharacteristicsFromFile(self):
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()
Expand Down Expand Up @@ -230,7 +230,7 @@ def processParameterLine(self, line):
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:
Expand Down

0 comments on commit 8ac22c5

Please sign in to comment.