From e774ebd0a32fe60f74474cb11ad70b904671fc8b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 18 Apr 2015 16:04:21 +0200 Subject: [PATCH] Possible bug in account create thing. [skip ci] --- app/Models/Account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index d0c0d7c6cd..2712aef197 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -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())); + }