mirror of
https://github.com/iv-org/instances-api.git
synced 2025-05-10 10:35:14 -04:00
use directly the exception message when priting the error message
This commit is contained in:
parent
496acbdd7f
commit
a0052d6eaa
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ spawn do
|
||||||
response = JSON.parse(client.get("/api/checks?api-key=ro-52iHyp6LBqQq7rGp4N7p").body)
|
response = JSON.parse(client.get("/api/checks?api-key=ro-52iHyp6LBqQq7rGp4N7p").body)
|
||||||
monitors += response.as_a
|
monitors += response.as_a
|
||||||
rescue ex
|
rescue ex
|
||||||
error_message ||= ex.message
|
puts "Error pulling monitors: #{ex.message}"
|
||||||
puts "Error pulling monitors: #{error_message}"
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue