mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not fail-stop if theme update fails (#15063)
This commit is contained in:
@@ -61,14 +61,11 @@ def update_themes
|
|||||||
theme.save!
|
theme.save!
|
||||||
unless theme.remote_theme.last_error_text.nil?
|
unless theme.remote_theme.last_error_text.nil?
|
||||||
puts "Error updating '#{theme.name}': #{theme.remote_theme.last_error_text}"
|
puts "Error updating '#{theme.name}': #{theme.remote_theme.last_error_text}"
|
||||||
exit 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
STDERR.puts "Failed to update '#{theme.name}'"
|
STDERR.puts "Failed to update '#{theme.name}': #{e}"
|
||||||
STDERR.puts e
|
|
||||||
STDERR.puts e.backtrace
|
STDERR.puts e.backtrace
|
||||||
exit 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user