diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index c53dcf355392..617532665b69 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -86,7 +86,9 @@ protected function createPayload($job, $data = '', $queue = null) $payload = json_encode($this->createPayloadArray($job, $data, $queue)); if (JSON_ERROR_NONE !== json_last_error()) { - throw new InvalidPayloadException; + throw new InvalidPayloadException( + 'Unable to JSON encode payload. Error code: '.json_last_error() + ); } return $payload;