5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 23:46:21 +00:00

fix: capturar más errores

This commit is contained in:
f 2023-09-21 13:09:10 -03:00
parent e4dc6588f9
commit 7709b9f798
No known key found for this signature in database

View file

@ -9,7 +9,7 @@ class SiteRenameOriginToUpstream < ActiveRecord::Migration[6.1]
site.repository.rugged.remotes.rename('origin', 'upstream') site.repository.rugged.remotes.rename('origin', 'upstream')
Rails.logger.info "#{site.name}: renamed origin to upstream" Rails.logger.info "#{site.name}: renamed origin to upstream"
rescue Rugged::Error => e rescue Rugged::Error, Rugged::OSError => e
Rails.logger.warn "#{site.name}: #{e.message}" Rails.logger.warn "#{site.name}: #{e.message}"
end end
end end