aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-05-17 05:24:40 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-05-17 19:43:14 -0400
commit00f89b0f6ec3cd73bd9859b815548f2267a4fcdc (patch)
treed35d072afa3f4a8572822682838ac503bf5482b0
parent83d1c7f06323775c3f75a6bc37b77c348c74de25 (diff)
downloadmeson-00f89b0f6ec3cd73bd9859b815548f2267a4fcdc.zip
meson-00f89b0f6ec3cd73bd9859b815548f2267a4fcdc.tar.gz
meson-00f89b0f6ec3cd73bd9859b815548f2267a4fcdc.tar.bz2
Fix undefined variables/methods.
-rw-r--r--mesonbuild/environment.py2
-rw-r--r--mesonbuild/interpreter.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index cd35285..bf58472 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -738,7 +738,7 @@ class Environment:
if p.returncode == 1 and err.startswith('usage'): # OSX
return ArLinker(linker)
self._handle_exceptions(popen_exceptions, linkers, 'linker')
- raise EnvironmentException('Unknown static linker "%s"' % ' '.join(linker))
+ raise EnvironmentException('Unknown static linker "%s"' % ' '.join(linkers))
def detect_ccache(self):
try:
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 5df26cc..3beb8b0 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -100,7 +100,7 @@ class RunProcess(InterpreterObject):
try:
return Popen_safe(command_array, env=child_env, cwd=cwd)
except FileNotFoundError:
- raise InterpreterException('Could not execute command "%s".' % cmd_name)
+ raise InterpreterException('Could not execute command "%s".' % ' '.join(command_array))
def returncode_method(self, args, kwargs):
return self.returncode