Only wrap error in grpc error if not already

This commit is contained in:
sophia 2022-01-07 17:11:45 -06:00 committed by Paul Hinze
parent c4e97bb89b
commit a62c3d69cf
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -17,6 +17,9 @@ module VagrantPlugins
begin
super(*args, **opts, &block)
rescue => err
if err.is_a?(GRPC::BadStatus)
raise err
end
localized_msg_details_any = Google::Protobuf::Any.new
localized_msg_details_any.pack(
SDK::Errors::LocalizedErrorMessage.new(