Improving error reporting API

This commit is contained in:
David Bomba 2016-02-17 09:45:28 +11:00
parent 1fde9261e6
commit a1be1f3529

View File

@ -289,7 +289,7 @@ class InvoiceApiController extends BaseAPIController
return $this->errorResponse(['message'=>'Invoice does not exist.'], 400); return $this->errorResponse(['message'=>'Invoice does not exist.'], 400);
$this->mailer->sendInvoice($invoice, false, $invoice->getPDFString()); $this->mailer->sendInvoice($invoice, false, false);
if($error) { if($error) {