mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Possible bug in account create thing. [skip ci]
This commit is contained in:
@@ -51,7 +51,8 @@ class Account extends Model
|
|||||||
$account = Account::create($fields);
|
$account = Account::create($fields);
|
||||||
if (is_null($account->id)) {
|
if (is_null($account->id)) {
|
||||||
// could not create account:
|
// could not create account:
|
||||||
App::abort(500, 'Could not create new account with data: ' . json_encode($fields));
|
App::abort(500, 'Could not create new account with data: ' . json_encode($fields).' because ' . json_encode($account->getErrors()));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user