5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 12:41:41 +00:00

fix: notificar cuando falla la última compilación #14555

This commit is contained in:
f 2023-11-17 18:19:13 -03:00
parent b96363a59f
commit 9709f419ca
No known key found for this signature in database

View file

@ -56,6 +56,10 @@ class DeployJob < ApplicationJob
rescue URI::Error rescue URI::Error
nil nil
end.compact end.compact
unless d == @site.deployment_list.last && !status
raise DeployException, 'Falló la compilación'
end
rescue StandardError => e rescue StandardError => e
status = false status = false
seconds ||= 0 seconds ||= 0