mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
Merge pull request #588 from chef/dr/connection-errors
dont fail with stacktrace on connection errors
This commit is contained in:
commit
62cadd0aab
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ module Inspec
|
|||
end
|
||||
|
||||
cls.new
|
||||
|
||||
rescue Train::ClientError => e
|
||||
raise "Client error, can't connect to '#{name}' backend: #{e.message}"
|
||||
rescue Train::TransportError => e
|
||||
raise "Transport error, can't connect to '#{name}' backend: #{e.message}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue