From 071c909962ab01c48201da977713e86718ac170a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 28 Nov 2017 22:51:40 -0800 Subject: [PATCH] Executor formatting --- dvc/executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/executor.py b/dvc/executor.py index 09dcfe38a..813829801 100644 --- a/dvc/executor.py +++ b/dvc/executor.py @@ -58,5 +58,6 @@ class Executor(object): code, out, err = Executor.exec_cmd(cmd, stdout_file=stdout_file, stderr_file=stderr_file, cwd=cwd, shell=shell) if code != 0: - raise ExecutorError('Git command error ({}):\n{}\n{}'.format(' '.join(cmd), out, err)) + cmd_str = ' '.join(cmd) if type(cmd) == list else cmd + raise ExecutorError('Git command error ({}):\n{}\n{}'.format(cmd_str, out, err)) return out