Skip to content

Commit d920bc3

Browse files
authored
If build command fails raise a helpful exception (#31)
1 parent abecbb4 commit d920bc3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/install/install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
say "Add default Procfile.dev"
4747
copy_file "#{__dir__}/Procfile.dev", "Procfile.dev"
4848

49-
say "Ensure foreman is install"
49+
say "Ensure foreman is installed"
5050
run "gem install foreman"
5151
end
5252

lib/tasks/cssbundling/build.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace :css do
22
desc "Build your CSS bundle"
33
task :build do
4-
system "yarn install && yarn build:css"
4+
unless system "yarn install && yarn build:css"
5+
raise "cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors"
6+
end
57
end
68
end
79

0 commit comments

Comments
 (0)