From d6298d9f0574ff234111f150f5e1205c83d8447c Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 26 Jul 2018 06:28:49 +0200 Subject: [PATCH] Add extra logging for common error on demo site [skip ci] --- app/Factory/TransactionFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index 7f328ac270..0c3c3c7e3f 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -113,7 +113,8 @@ class TransactionFactory $destinationAccount = $this->findAccount($destinationType, $data['destination_id'], $data['destination_name']); if (null === $sourceAccount || null === $destinationAccount) { - throw new FireflyException('Could not determine source or destination account.', $data); + Log::error('Info about source/dest:', $data); + throw new FireflyException('Could not determine source or destination account.'); } Log::debug(sprintf('Source type is "%s", destination type is "%s"', $sourceAccount->accountType->type, $destinationAccount->accountType->type));