From afe8c4ed90ec2e91b4e81bb397dfacb4a6ef7e43 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:17:03 +0800 Subject: [PATCH] 11 --- src/controllers/nft.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/nft.controller.ts b/src/controllers/nft.controller.ts index f2c4c31..60ddce2 100644 --- a/src/controllers/nft.controller.ts +++ b/src/controllers/nft.controller.ts @@ -165,7 +165,7 @@ class NftController extends BaseController { let rpcRes = await checkDiscordRole(user.address.toLowerCase(), guild, cfg.role) console.log('check result:', rpcRes) if (rpcRes.errcode) { - throw new ZError(rpcRes.errcode, `rpcRes.errmsg`) + throw new ZError(rpcRes.errcode, rpcRes.errmsg) } if (!rpcRes.data.result) { throw new ZError(14, 'had no role')