mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch when no amount info is present.
This commit is contained in:
parent
ea0980ba83
commit
d7b1892bda
@ -302,6 +302,10 @@ class ImportJournal
|
||||
if (0 === count($info)) {
|
||||
throw new FireflyException('No amount information for this row.');
|
||||
}
|
||||
$class = $info['class'] ?? '';
|
||||
if (strlen($class) === 0) {
|
||||
throw new FireflyException('No amount information (conversion class) for this row.');
|
||||
}
|
||||
|
||||
Log::debug(sprintf('Converter class is %s', $info['class']));
|
||||
/** @var ConverterInterface $amountConverter */
|
||||
|
Loading…
Reference in New Issue
Block a user