1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Improving error reporting API

This commit is contained in:
David Bomba 2016-02-17 10:29:18 +11:00
parent 09650123d7
commit 3e4df4ff4f

View File

@ -753,15 +753,17 @@ class Invoice extends EntityModel implements BalanceAffecting
],
];
Log::info($opts);
curl_setopt_array($curl, $opts);
$response = curl_exec($curl);
curl_close($curl);
Log::info($response);
$encodedString = strip_tags($response);
$pdfString = Utils::decodePDF($encodedString);
Log::info($pdfString);
if ( ! $pdfString || strlen($pdfString) < 200) {
Utils::logError("PhantomJSCloud - failed to create pdf: {$encodedString}");
}