diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-04-25 22:53:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 22:53:29 -0700 |
commit | 801b33a4812c937a7e726d4060e2e3e9361c56fa (patch) | |
tree | 209d35401e4e440776dded1328bf1830c254aaed /railties | |
parent | deba47799ff905f778e0c98a015789a1327d5087 (diff) | |
parent | 28f455188af01bbfd290c236a8735ce0d5bfb6ec (diff) | |
download | rails-801b33a4812c937a7e726d4060e2e3e9361c56fa.tar.gz rails-801b33a4812c937a7e726d4060e2e3e9361c56fa.tar.bz2 rails-801b33a4812c937a7e726d4060e2e3e9361c56fa.zip |
Merge pull request #28839 from y-yagi/fix-yarn-exit-status
Ensure bin/yarn matches the one generated by webpacker
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn | 5 |
1 files changed, 3 insertions, 2 deletions
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 |