From 5cc36243de2543f97ed4570bd3e3e7f6df12e01d Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Wed, 18 May 2022 12:08:14 +0200 Subject: [PATCH] Make sure all failed tasks exit with a non-zero exit code --- lib/tasks/build.rake | 4 ++-- lib/tasks/install.rake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/build.rake b/lib/tasks/build.rake index bf2e7c7..d106de3 100644 --- a/lib/tasks/build.rake +++ b/lib/tasks/build.rake @@ -23,12 +23,12 @@ end namespace :dartsass do desc "Build your Dart Sass CSS" task build: :environment do - system dartsass_compile_command + system dartsass_compile_command, exception: true end desc "Watch and build your Dart Sass CSS on file changes" task watch: :environment do - system "#{dartsass_compile_command} -w" + system "#{dartsass_compile_command} -w", exception: true end end diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake index 2379cde..8d6c8a0 100644 --- a/lib/tasks/install.rake +++ b/lib/tasks/install.rake @@ -1,6 +1,6 @@ namespace :dartsass do desc "Install Dart Sass into the app" task :install do - system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/dartsass.rb", __dir__)}" + system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/dartsass.rb", __dir__)}", exception: true end end