Add more info to error message.

This commit is contained in:
James Cole
2023-08-30 06:40:12 +02:00
parent b93ee5efd8
commit 14a46a6197
3 changed files with 6 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ class TransactionFactory
Log::error(sprintf('Could not create transaction: %s', $e->getMessage()), $data);
Log::error($e->getMessage());
Log::error($e->getTraceAsString());
throw new FireflyException('Query exception when creating transaction.', 0, $e);
throw new FireflyException(sprintf('Query exception when creating transaction: %s', $e->getMessage()), 0, $e);
}
if (null === $result) {
throw new FireflyException('Transaction is NULL.');