Skip to content

Commit 24fbbe0

Browse files
committed
Improve error messages on bin/setup
`system(.., exception: true)` gives you more information on how the command failed, e.g. ``` bin/setup:8:in `system': Command failed with exit 1: bundle install (RuntimeError) bin/setup:8:in `system': No such file or directory - bundle (Errno::ENOENT) ```
1 parent 25c3d42 commit 24fbbe0

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/bin

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/bin/setup.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require "fileutils"
44
APP_ROOT = File.expand_path("..", __dir__)
55

66
def system!(*args)
7-
system(*args) || abort("\n== Command #{args} failed ==")
7+
system(*args, exception: true)
88
end
99

1010
FileUtils.chdir APP_ROOT do

0 commit comments

Comments
 (0)