From 283a18421c6c2d059bcae6a881796209295d8752 Mon Sep 17 00:00:00 2001 From: Ryan Berckmans Date: Tue, 16 Jul 2024 11:12:58 -0500 Subject: [PATCH] Add debug info to service fromProto --- packages/service/src/fromProto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service/src/fromProto.ts b/packages/service/src/fromProto.ts index 56f42fc..2c7d03c 100644 --- a/packages/service/src/fromProto.ts +++ b/packages/service/src/fromProto.ts @@ -11,7 +11,7 @@ export function transferVerificationRequestFromProto(pb: TransferVerificationReq const currency = ((): 'USD' => { const c = pb.trusted.currency; if (c === 'USD') return c; - else throw Error(`trusted.currency must be 'USD'`); + else throw Error(`trusted.currency must be 'USD' but it was '${c}'`); })(); const logicalAssetAmount: bigint = (() => { try {