Commit c8074801 authored by Sean McGivern's avatar Sean McGivern

Improve error logging on working copies

parent 1d85c569
...@@ -11,7 +11,12 @@ module MergeRequests ...@@ -11,7 +11,12 @@ module MergeRequests
output, status = popen(git_command, path, env, &block) output, status = popen(git_command, path, env, &block)
unless status.zero? unless status.zero?
log_error("Failed to #{message}:") if message if message
log_error("Failed to #{message} with `#{git_command.join(' ')}`:")
else
log_error("`#{git_command.join(' ')}` failed:")
end
log_error(output) log_error(output)
raise GitCommandError raise GitCommandError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment