Skip to content

Commit da55582

Browse files
authored
Merge pull request #24 from jacob-carlborg-apoex/exit-code
Make sure all failed tasks exit with a non-zero exit code
2 parents d0bf21b + 5cc3624 commit da55582

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/tasks/build.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ end
2323
namespace :dartsass do
2424
desc "Build your Dart Sass CSS"
2525
task build: :environment do
26-
system dartsass_compile_command
26+
system dartsass_compile_command, exception: true
2727
end
2828

2929
desc "Watch and build your Dart Sass CSS on file changes"
3030
task watch: :environment do
31-
system "#{dartsass_compile_command} -w"
31+
system "#{dartsass_compile_command} -w", exception: true
3232
end
3333
end
3434

lib/tasks/install.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace :dartsass do
22
desc "Install Dart Sass into the app"
33
task :install do
4-
system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/dartsass.rb", __dir__)}"
4+
system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/dartsass.rb", __dir__)}", exception: true
55
end
66
end

0 commit comments

Comments
 (0)