better error message with 0 invoice

This commit is contained in:
keyan 2022-05-18 13:13:13 -05:00
parent f7d3f281b8
commit 4d8ff46574
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ async function createWithdrawal (parent, { invoice, maxFee }, { me, models, lnd
}
if (!decoded.mtokens || Number(decoded.mtokens) <= 0) {
throw new UserInputError('you must specify amount')
throw new UserInputError('your invoice must specify an amount')
}
const msatsFee = Number(maxFee) * 1000