diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-10-06 05:16:49 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-31 00:25:43 -0500 |
| commit | 08e722d44c7798344bd149e1a2c58877de28e655 (patch) | |
| tree | 434e7918be4e476894d55c24bfd0f60ea727169f /mesonbuild/interpreter/interpreterobjects.py | |
| parent | 118396f344a77291e41733194e9ee767a451911c (diff) | |
| download | meson-08e722d44c7798344bd149e1a2c58877de28e655.tar.gz | |
log running commands a bit better by doing proper shell quoting
Diffstat (limited to 'mesonbuild/interpreter/interpreterobjects.py')
| -rw-r--r-- | mesonbuild/interpreter/interpreterobjects.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index 00412a0f2..538d134e6 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -200,7 +200,7 @@ class RunProcess(MesonInterpreterObject): child_env.update(menv) child_env = env.get_env(child_env) stdout = subprocess.PIPE if self.capture else subprocess.DEVNULL - mlog.debug('Running command:', ' '.join(command_array)) + mlog.debug('Running command:', mesonlib.join_args(command_array)) try: p, o, e = Popen_safe(command_array, stdout=stdout, env=child_env, cwd=cwd) if self.capture: @@ -214,11 +214,11 @@ class RunProcess(MesonInterpreterObject): mlog.debug('') if check and p.returncode != 0: - raise InterpreterException('Command "{}" failed with status {}.'.format(' '.join(command_array), p.returncode)) + raise InterpreterException('Command `{}` failed with status {}.'.format(mesonlib.join_args(command_array), p.returncode)) return p.returncode, o, e except FileNotFoundError: - raise InterpreterException('Could not execute command "%s".' % ' '.join(command_array)) + raise InterpreterException('Could not execute command `%s`.' % mesonlib.join_args(command_array)) @noPosargs @noKwargs |
