mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Log import errors
This commit is contained in:
parent
2fb227714a
commit
e217718918
@ -11,6 +11,7 @@ use App\Ninja\Mailers\UserMailer;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use App;
|
||||
use Utils;
|
||||
|
||||
/**
|
||||
* Class SendInvoiceEmail.
|
||||
@ -89,6 +90,7 @@ class ImportData extends Job implements ShouldQueue
|
||||
} catch (Exception $exception) {
|
||||
$subject = trans('texts.import_failed');
|
||||
$message = $exception->getMessage();
|
||||
Utils::logError($subject . ':' . $message);
|
||||
}
|
||||
|
||||
$userMailer->sendMessage($this->user, $subject, $message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user