diff --git a/plugins/commands/login/client.rb b/plugins/commands/login/client.rb index f06772be9..0e28bc374 100644 --- a/plugins/commands/login/client.rb +++ b/plugins/commands/login/client.rb @@ -75,10 +75,7 @@ module VagrantPlugins false rescue RestClient::NotAcceptable => e begin - errors = JSON.parse(e.response)["errors"] - .map { |h| h["message"] } - .join("\n") - + errors = JSON.parse(e.response)["errors"].join("\n") raise Errors::ServerError, errors: errors rescue JSON::ParserError; end