mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
dont fail with stacktrace on connection errors
This commit is contained in:
parent
ed9ad28afb
commit
856460054f
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