From 2be738be4f162004fa2764df11c0b10fb748075e Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 22 May 2017 16:26:12 -0400 Subject: [PATCH] Including trailing newline when printing failed command --- lib/rscons/environment.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 8ca17bf..ae83bd4 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -336,7 +336,7 @@ module Rscons end else unless @echo == :command - $stdout.write "Failed command was: #{command_to_s(tc.command)}" + $stdout.puts "Failed command was: #{command_to_s(tc.command)}" end raise BuildError.new("Failed to build #{tc.build_operation[:target]}") end @@ -394,7 +394,7 @@ module Rscons options_args = options[:options] ? [options[:options]] : [] system(*env_args, *Rscons.command_executer, *command, *options_args).tap do |result| 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 @@ -626,7 +626,7 @@ module Rscons call_build_hooks[:post] else 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