Add message.

This commit is contained in:
James Cole
2025-12-20 08:08:20 +01:00
parent 8e729d6bbf
commit 31c1e28c76

View File

@@ -333,6 +333,10 @@ class Amount
public function getTransactionCurrencyById(int $currencyId): TransactionCurrency
{
if(0 === $currencyId) {
Log::debug('Could never find a currency with ID zero. Throw error.');
throw new FireflyException('Could never find a currency with ID zero. Throw error.');
}
$instance = PreferencesSingleton::getInstance();
$key = sprintf('transaction_currency_%d', $currencyId);