1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Working on tests

This commit is contained in:
Hillel Coren 2018-03-11 12:25:49 +02:00
parent b54855b09e
commit 694929cc3d

View File

@ -139,6 +139,7 @@ class PaymentService extends BaseService
} catch (Exception $exception) {
$subject = trans('texts.auto_bill_failed', ['invoice_number' => $invoice->invoice_number]);
$message = sprintf('%s: %s', ucwords($paymentDriver->providerName()), $exception->getMessage());
$message .= $exception->getTraceAsString();
Utils::logError($message, 'PHP', true);
if (! Auth::check()) {
$mailer = app('App\Ninja\Mailers\UserMailer');