mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +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
|
end
|
||||||
|
|
||||||
cls.new
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue