mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-17 20:08:52 +00:00
Some cleanup, some bug fixes.
This commit is contained in:
@@ -411,7 +411,8 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
|
||||
$toTransaction->description = null;
|
||||
$toTransaction->amount = $amountTo;
|
||||
if (!$toTransaction->validate()) {
|
||||
throw new FireflyException('Cannot create valid transaction (to): ' . $toTransaction->errors()->first());
|
||||
|
||||
throw new FireflyException('Cannot create valid transaction (to): ' . $toTransaction->errors()->first().': ' . print_r($toAccount->toArray(),true));
|
||||
}
|
||||
$toTransaction->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user