Better error message. Closes #146.

pull/148/head
Jussi Pakkanen 10 years ago
parent 78eeade5fe
commit 84ac67e825
  1. 2
      interpreter.py

@ -1577,7 +1577,7 @@ class Interpreter():
elif isinstance(s, str):
s = File.from_source_file(self.environment.source_dir, self.subdir, s)
else:
raise RuntimeError("Unreachable code")
raise InterpreterException("Argument list is invalid.")
results.append(s)
return results

Loading…
Cancel
Save