A platform for community discussion. Free, open, simple.
FEATURE: Add ENV to control themes:update errors (#16051)
Dan Ungureanuae5eab06ad87
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rakeindex 644c536e3aa..387b9d18a43 100644--- a/lib/tasks/themes.rake+++ b/lib/tasks/themes.rake@@ -71,7 +71,7 @@ def update_themesraise RemoteTheme::ImportError.new(remote_theme.last_error_text) if remote_theme.last_error_text.present?rescue => eSTDERR.puts "Failed to update '#{theme.name}': #{e}"- raise if RailsMultisite::ConnectionManagement.current_db == "default"+ raise if ENV["RAISE_THEME_ERRORS"] != "0" && (ENV["RAISE_THEME_ERRORS"] == "1" || RailsMultisite::ConnectionManagement.current_db == "default")endend