Add missing lineno call.

This commit is contained in:
Jussi Pakkanen 2013-01-01 20:33:49 +02:00
parent 347dda92af
commit b1ccec0cef
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class Interpreter():
def func_executable(self, node, args):
for a in args:
if not isinstance(a, str):
raise InvalidArguments('Line %d: Argument %s is not a string.' % str(a))
raise InvalidArguments('Line %d: Argument %s is not a string.' % (node.lineno(), str(a)))
name = args[0]
sources = args[1:]
if name in self.targets: