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