Skip to content

Commit

Permalink
Only handle HTTPErrors in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgr committed Aug 16, 2023
1 parent 60743c1 commit 5bbf5b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/testpool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,13 @@ function _validate_engine_pool!()
continue
end
# The engine exists, but is not provisioned despite our best attempts
@warn("$engine was not provisioned. Reported state was <$(response.state)>")
@warn("$engine was not provisioned. Reported state was: $(response.state)")
catch e
@warn("$engine was not provisioned. Reported error was <$e>")
if e isa HTTPError
@warn("$engine was not provisioned. Reported error was: $e")
else
rethrow()
end
end
# Something went wrong. Remove from the list and attempt to delete
delete!(TEST_ENGINE_POOL.engines, engine)
Expand Down

0 comments on commit 5bbf5b1

Please sign in to comment.