mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Make sure import errors end up where the user can read them.
This commit is contained in:
@@ -102,6 +102,7 @@ class ImportValidator
|
||||
{
|
||||
if ($entry->fields['amount'] == 0) {
|
||||
$entry->valid = false;
|
||||
$entry->errors->push('Amount of transaction is zero, cannot handle.');
|
||||
Log::warning('Amount of transaction is zero, cannot handle.');
|
||||
|
||||
return $entry;
|
||||
@@ -383,6 +384,7 @@ class ImportValidator
|
||||
}
|
||||
Log::warning(sprintf('Opposing account is of type %s, cannot handle this.', $type));
|
||||
$entry->valid = false;
|
||||
$entry->errors->push(sprintf('Opposing account is of type %s, cannot handle this.', $type));
|
||||
|
||||
return $entry;
|
||||
}
|
||||
|
Reference in New Issue
Block a user