mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Log OFX parsing errors
This commit is contained in:
parent
589c4d7463
commit
59451112fe
@ -8,6 +8,7 @@ use Session;
|
|||||||
use View;
|
use View;
|
||||||
use Crypt;
|
use Crypt;
|
||||||
use File;
|
use File;
|
||||||
|
use Utils;
|
||||||
use App\Models\Account;
|
use App\Models\Account;
|
||||||
use App\Models\BankAccount;
|
use App\Models\BankAccount;
|
||||||
use App\Ninja\Repositories\BankAccountRepository;
|
use App\Ninja\Repositories\BankAccountRepository;
|
||||||
@ -130,6 +131,7 @@ class BankAccountController extends BaseController
|
|||||||
$data = $this->bankAccountService->parseOFX($file);
|
$data = $this->bankAccountService->parseOFX($file);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Session::flash('error', trans('texts.ofx_parse_failed'));
|
Session::flash('error', trans('texts.ofx_parse_failed'));
|
||||||
|
Utils::logError($e);
|
||||||
return view('accounts.import_ofx');
|
return view('accounts.import_ofx');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user