From 1e9eb843c02728d72789d2fb71ceff2031f40a95 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 3 Jun 2018 19:14:03 +0200 Subject: [PATCH] Still not sure what's causing the empty strings to appear. --- app/Factory/TransactionFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index c9c787d092..5d1cf3ecef 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -56,6 +56,7 @@ class TransactionFactory $currencyId = $data['currency_id'] ?? null; $currencyId = isset($data['currency']) ? $data['currency']->id : $currencyId; if ('' === $data['amount']) { + Log::error('Empty string in data.', $data); throw new FireflyException('Amount is an empty string, which Firefly III cannot handle. Apologies.'); // @codeCoverageIgnore } if (null === $currencyId) {