change throw new LogError to throw new Error

This commit is contained in:
clauspeterhuebner 2026-02-25 17:01:41 +01:00
parent 2dfff70e00
commit 8aa67de124

View File

@ -570,7 +570,7 @@ export class TransactionLinkResolver {
} catch (e) { } catch (e) {
const errmsg = `Error on creating Redeem JWT: error=${e}` const errmsg = `Error on creating Redeem JWT: error=${e}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
} }
@ -612,19 +612,19 @@ export class TransactionLinkResolver {
if (!senderCom) { if (!senderCom) {
const errmsg = `Sender community not found with uuid=${senderCommunityUuid}` const errmsg = `Sender community not found with uuid=${senderCommunityUuid}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
const senderFedCom = await DbFederatedCommunity.findOneBy({ publicKey: senderCom.publicKey }) const senderFedCom = await DbFederatedCommunity.findOneBy({ publicKey: senderCom.publicKey })
if (!senderFedCom) { if (!senderFedCom) {
const errmsg = `Sender federated community not found with publicKey=${senderCom.publicKey}` const errmsg = `Sender federated community not found with publicKey=${senderCom.publicKey}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
const recipientCom = await getCommunityByUuid(recipientCommunityUuid) const recipientCom = await getCommunityByUuid(recipientCommunityUuid)
if (!recipientCom) { if (!recipientCom) {
const errmsg = `Recipient community not found with uuid=${recipientCommunityUuid}` const errmsg = `Recipient community not found with uuid=${recipientCommunityUuid}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
const client = DisbursementClientFactory.getInstance(senderFedCom) const client = DisbursementClientFactory.getInstance(senderFedCom)
if (client instanceof V1_0_DisbursementClient) { if (client instanceof V1_0_DisbursementClient) {
@ -668,13 +668,13 @@ export class TransactionLinkResolver {
if (!senderUser) { if (!senderUser) {
const errmsg = `Sender user not found with identifier=${senderGradidoId}` const errmsg = `Sender user not found with identifier=${senderGradidoId}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
const recipientUser = await findUserByIdentifier(recipientGradidoId, recipientCommunityUuid) const recipientUser = await findUserByIdentifier(recipientGradidoId, recipientCommunityUuid)
if (!recipientUser) { if (!recipientUser) {
const errmsg = `Recipient user not found with identifier=${recipientGradidoId}` const errmsg = `Recipient user not found with identifier=${recipientGradidoId}`
methodLogger.error(errmsg) methodLogger.error(errmsg)
throw new LogError(errmsg) throw new Error(errmsg)
} }
if (recipientUser.emailContact?.email !== null) { if (recipientUser.emailContact?.email !== null) {
if (methodLogger.isDebugEnabled()) { if (methodLogger.isDebugEnabled()) {