1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

better error-message

This commit is contained in:
paulwer 2024-01-27 10:52:16 +01:00
parent 8a0b80d64b
commit ab4eb688c8

View File

@ -87,8 +87,10 @@ class TransactionTransformer implements BankRevenueInterface
$transactionId = $transaction["transactionId"];
else if (array_key_exists('internalTransactionId', $transaction))
$transactionId = $transaction["internalTransactionId"];
else
else {
nlog(`Invalid Input for nordigen transaction transformer: ` . $transaction);
throw new \Exception('invalid dataset: missing transactionId - Please report this error to the developer');
}
$amount = (float) $transaction["transactionAmount"]["amount"];