Commit 40a5bfb0 authored by Fabio Pelosin's avatar Fabio Pelosin

[Executable] Indent warning if command fails.

parent b2a70675
...@@ -33,7 +33,7 @@ module Pod ...@@ -33,7 +33,7 @@ module Pod
end end
status = Open4.spawn(full_command, :stdout => stdout, :stderr => stderr, :status => true) status = Open4.spawn(full_command, :stdout => stdout, :stderr => stderr, :status => true)
# TODO not sure that we should be silent in case of a failure. # TODO not sure that we should be silent in case of a failure.
puts "[!] Failed: #{full_command}".red unless status.success? || Config.instance.silent? puts (Config.instance.verbose? ? ' ' : '') << "[!] Failed: #{full_command}".red unless status.success? || Config.instance.silent?
stdout.join("\n") + stderr.join("\n") # TODO will this suffice? stdout.join("\n") + stderr.join("\n") # TODO will this suffice?
end end
private name private name
......
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