Possible bug in account create thing. [skip ci]

This commit is contained in:
James Cole 2015-04-18 16:04:21 +02:00
parent edbda32a84
commit e774ebd0a3

View File

@ -51,7 +51,8 @@ class Account extends Model
$account = Account::create($fields);
if (is_null($account->id)) {
// 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()));
}