From 28f455188af01bbfd290c236a8735ce0d5bfb6ec Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 23 Apr 2017 15:28:23 +0900 Subject: Ensure bin/yarn matches the one generated by webpacker Import from https://github.com/rails/webpacker/pull/277. Fixes https://github.com/rails/webpacker/issues/278 --- railties/lib/rails/generators/rails/app/templates/bin/yarn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/generators/rails/app/templates/bin/yarn b/railties/lib/rails/generators/rails/app/templates/bin/yarn index 4ae896a8d3..44f75c22a4 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/yarn +++ b/railties/lib/rails/generators/rails/app/templates/bin/yarn @@ -3,7 +3,8 @@ Dir.chdir(VENDOR_PATH) do begin exec "yarnpkg #{ARGV.join(" ")}" rescue Errno::ENOENT - puts "Yarn executable was not detected in the system." - puts "Download Yarn at https://yarnpkg.com/en/docs/install" + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 end end -- cgit v1.2.3