mirror of
https://github.com/iv-org/instances-api.git
synced 2024-10-01 04:35:38 -04:00
Fix error handling for uptime monitors
This commit is contained in:
parent
0e888b0857
commit
3a8481e453
@ -46,7 +46,7 @@ spawn do
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
rescue ex
|
rescue ex
|
||||||
error_message = response.try &.["errorStats"]?
|
error_message = response.try &.as?(String).try &.["errorStats"]?
|
||||||
error_message ||= ex.message
|
error_message ||= ex.message
|
||||||
puts "Exception pulling monitors: #{error_message}"
|
puts "Exception pulling monitors: #{error_message}"
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user