Including trailing newline when printing failed command

This commit is contained in:
Josh Holtrop 2017-05-22 16:26:12 -04:00
parent 7b3bffd329
commit 2be738be4f

View File

@ -336,7 +336,7 @@ module Rscons
end end
else else
unless @echo == :command unless @echo == :command
$stdout.write "Failed command was: #{command_to_s(tc.command)}" $stdout.puts "Failed command was: #{command_to_s(tc.command)}"
end end
raise BuildError.new("Failed to build #{tc.build_operation[:target]}") raise BuildError.new("Failed to build #{tc.build_operation[:target]}")
end end
@ -394,7 +394,7 @@ module Rscons
options_args = options[:options] ? [options[:options]] : [] options_args = options[:options] ? [options[:options]] : []
system(*env_args, *Rscons.command_executer, *command, *options_args).tap do |result| system(*env_args, *Rscons.command_executer, *command, *options_args).tap do |result|
unless result or @echo == :command unless result or @echo == :command
$stdout.write "Failed command was: #{command_to_s(command)}" $stdout.puts "Failed command was: #{command_to_s(command)}"
end end
end end
end end
@ -626,7 +626,7 @@ module Rscons
call_build_hooks[:post] call_build_hooks[:post]
else else
unless @echo == :command unless @echo == :command
$stdout.write "Failed command was: #{command_to_s(tc.command)}" $stdout.puts "Failed command was: #{command_to_s(tc.command)}"
end end
end end
end end