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:
parent
6f363f2c35
commit
5ec698366a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue