diff --git a/internal/core/vagrantfile.go b/internal/core/vagrantfile.go index 67237cda1..fd786155c 100644 --- a/internal/core/vagrantfile.go +++ b/internal/core/vagrantfile.go @@ -525,6 +525,7 @@ func (v *Vagrantfile) TargetConfig( "provider_not_usable", map[string]string{"Provider": provider, "Machine": name}, errStatus, + true, ) } } diff --git a/plugins/commands/serve/util/exception_transformer.rb b/plugins/commands/serve/util/exception_transformer.rb index dc12343b7..bf5c61239 100644 --- a/plugins/commands/serve/util/exception_transformer.rb +++ b/plugins/commands/serve/util/exception_transformer.rb @@ -58,7 +58,7 @@ module VagrantPlugins if err.is_a? Vagrant::Errors::VagrantError localized_msg_details_any = Google::Protobuf::Any.new localized_msg_details_any.pack( - Google::Rpc::LocalizedMessage.new(locale: "en-US", message: message) + Google::Rpc::LocalizedMessage.new(locale: "en-US", message: message.gsub("\n", " ")) ) proto = Google::Rpc::Status.new( code: GRPC::Core::StatusCodes::UNKNOWN,