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

fix: capturar standard error

This commit is contained in:
f 2023-03-20 11:46:21 -03:00
parent 6f363f2c35
commit 5ec698366a

View file

@ -61,7 +61,7 @@ class GitlabNotifierJob < ApplicationJob
Rails.cache.write(cache_key, issue_data)
# Si este trabajo genera una excepción va a entrar en un loop, así que
# la notificamos por correo
rescue Exception => e
rescue StandardError => e
email_notification.call(e, data: @issue)
email_notification.call(exception, data: options)
end
@ -89,7 +89,9 @@ class GitlabNotifierJob < ApplicationJob
end
def errors
options.dig(:data, :params, 'errors') if options.dig(:data, :params).is_a? Hash
return '' unless javascript?
options.dig(:data, :params, 'errors')
end
# Define si es una excepción de javascript o local