5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-01 09:04:17 +00:00

fix: lanzar una excepción contundente
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-09-25 14:15:32 -03:00
parent 01e7436576
commit bfd31d051f
No known key found for this signature in database

View file

@ -93,8 +93,8 @@ module Jekyll
unless spec
I18n.with_locale(locale) do
raise ArgumentError, I18n.t('activerecord.errors.models.site.attributes.design_id.missing_gem', theme: name)
rescue ArgumentError => e
raise Jekyll::Errors::InvalidThemeName, I18n.t('activerecord.errors.models.site.attributes.design_id.missing_gem', theme: name)
rescue Jekyll::Errors::InvalidThemeName => e
ExceptionNotifier.notify_exception(e, data: { theme: name, site: File.basename(site.source) })
raise
end