1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Log OFX parsing errors

This commit is contained in:
Hillel Coren 2016-08-22 13:32:10 +03:00
parent 589c4d7463
commit 59451112fe

View File

@ -8,6 +8,7 @@ use Session;
use View;
use Crypt;
use File;
use Utils;
use App\Models\Account;
use App\Models\BankAccount;
use App\Ninja\Repositories\BankAccountRepository;
@ -130,6 +131,7 @@ class BankAccountController extends BaseController
$data = $this->bankAccountService->parseOFX($file);
} catch (\Exception $e) {
Session::flash('error', trans('texts.ofx_parse_failed'));
Utils::logError($e);
return view('accounts.import_ofx');
}