When a machine cannot be loaded, raise exception

This commit is contained in:
Chris Roberts 2021-08-05 10:57:22 -07:00 committed by Paul Hinze
parent 2929a7ab98
commit ff973e380c
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -26,7 +26,7 @@ module VagrantPlugins
raw_target = @client.target(req)
rescue
@logger.debug("no target found for #{name}")
return Machine.new(nil)
raise "Failed to locate requested machine `#{name}'"
end
@logger.debug("got target #{raw_target}")
conn = @broker.dial(raw_target.stream_id)