Skip to content

A platform for community discussion. Free, open, simple.

Exit with an error if there are errors with settings import (#6475)

Chris Butlerddbed82bcafb
diff --git a/lib/tasks/site_settings.rake b/lib/tasks/site_settings.rake
index 692cf32b2e2..fd159c1ccf6 100644
--- a/lib/tasks/site_settings.rake
+++ b/lib/tasks/site_settings.rake
@@ -29,4 +29,8 @@ task "site_settings:import" => :environment do
puts " Updated: #{counts[:updated]}"
puts " Not Found: #{counts[:not_found]}"
puts " Errors: #{counts[:errors]}"
+
+ if counts[:not_found] + counts[:errors] > 0
+ exit 1
+ end
end