mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 00:31:42 +00:00
fix: lanzar una excepción contundente
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
01e7436576
commit
bfd31d051f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue