Fix error handling for uptime monitors

This commit is contained in:
Omar Roth 2019-10-19 16:20:28 -04:00
parent 0e888b0857
commit 3a8481e453
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

View File

@ -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