clear error if you can contact theme repo again
This commit is contained in:
parent
c9a5438a88
commit
5625461c05
|
@ -81,6 +81,7 @@ class RemoteTheme < ActiveRecord::Base
|
||||||
else
|
else
|
||||||
self.updated_at = Time.zone.now
|
self.updated_at = Time.zone.now
|
||||||
self.remote_version, self.commits_behind = importer.commits_since(local_version)
|
self.remote_version, self.commits_behind = importer.commits_since(local_version)
|
||||||
|
self.last_error_text = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -96,6 +97,8 @@ class RemoteTheme < ActiveRecord::Base
|
||||||
rescue ThemeStore::GitImporter::ImportFailed => err
|
rescue ThemeStore::GitImporter::ImportFailed => err
|
||||||
self.last_error_text = err.message
|
self.last_error_text = err.message
|
||||||
return self
|
return self
|
||||||
|
else
|
||||||
|
self.last_error_text = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue