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')