clear error if you can contact theme repo again

This commit is contained in:
OsamaSayegh 2018-09-10 18:17:56 +03:00 committed by Sam
parent c9a5438a88
commit 5625461c05
1 changed files with 3 additions and 0 deletions

View File

@ -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