diff --git a/plugins/commands/login/client.rb b/plugins/commands/login/client.rb index 1e8381fe4..64a8dd1c5 100644 --- a/plugins/commands/login/client.rb +++ b/plugins/commands/login/client.rb @@ -83,10 +83,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