Skip to content
Permalink
Browse files

[processing] fixed wrong creation of error message in script algorithm

  • Loading branch information
volaya committed Apr 28, 2015
1 parent 288b242 commit 8ac22c5f30ae4190440c88e0f4863140c0a6c7df
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/script/ScriptAlgorithm.py
@@ -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()
@@ -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:

0 comments on commit 8ac22c5

Please sign in to comment.
You can’t perform that action at this time.