diff --git a/lib/google/apis/core/api_command.rb b/lib/google/apis/core/api_command.rb index 455bc90d7..885516493 100644 --- a/lib/google/apis/core/api_command.rb +++ b/lib/google/apis/core/api_command.rb @@ -96,8 +96,8 @@ module Google if error message = error['reason'] if error.has_key?('reason') raise Google::Apis::RateLimitError.new(message, - status_code: status, - header: header, + status_code: status, + header: header, body: body) if RATE_LIMIT_ERRORS.include?(message) end super(status, header, body, message)