From 9a575a79ec45db1fe93816a823294170999fc659 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 11 Dec 2014 01:21:46 -0800 Subject: [PATCH] Use the new Rails error format --- plugins/commands/login/client.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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