<?php
namespace EventFarm\Restforce\RestClient;

use Psr\Http\Message\StreamInterface;

class RestforceClientException extends \Exception
{
    public static function queryError(StreamInterface $responseBody)
    {
        return new self('Error communicating with Salesforce', 500);
    }
}

<?php
namespace EventFarm\Restforce\RestClient;

use Psr\Http\Message\StreamInterface;

class RestforceClientException extends \Exception
{
    public static function queryError(StreamInterface $responseBody)
    {
        return new self('Error communicating with Salesforce: ' . $responseBody->getContents(), 500);
    }
}

Add response contents to error message string.
Add response contents to error message string.
