Skip to content

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

clear error if you can contact theme repo again

OsamaSayegh5625461c05f3
diff --git a/app/models/remote_theme.rb b/app/models/remote_theme.rb
index cdf1080df95..9548f22fe07 100644
--- a/app/models/remote_theme.rb
+++ b/app/models/remote_theme.rb
@@ -81,6 +81,7 @@ class RemoteTheme < ActiveRecord::Base
else
self.updated_at = Time.zone.now
self.remote_version, self.commits_behind = importer.commits_since(local_version)
+ self.last_error_text = nil
end
end
@@ -96,6 +97,8 @@ class RemoteTheme < ActiveRecord::Base
rescue ThemeStore::GitImporter::ImportFailed => err
self.last_error_text = err.message
return self
+ else
+ self.last_error_text = nil
end
end