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:
parent
09650123d7
commit
3e4df4ff4f
@ -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}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user