mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Scope down rescue on BoxCollection.find
After https://github.com/hashicorp/vagrant-plugin-sdk/pull/175 is merged it will properly return a NotFound so we can rescue that specifically and let any unexpected errors propagate.
This commit is contained in:
parent
708b688b3f
commit
47962dff37
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ module VagrantPlugins
|
|||
res = client.find(SDK::BoxCollection::FindRequest.new(
|
||||
name: name, version: version, providers: Array(providers)
|
||||
))
|
||||
rescue
|
||||
rescue GRPC::NotFound
|
||||
logger.debug("box not found!")
|
||||
return nil
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue