Merge pull request #905 from ubavic/fix/insufficient_funds_error

fix: log only a message in case of insufficient funds
This commit is contained in:
Rafael Taranto 2021-11-14 23:37:30 +00:00 committed by GitHub
commit a1afc9f082

View file

@ -10,7 +10,7 @@ const ticker = require('../lib/ticker')
const [toAddress, cryptoValue, cryptoCode] = process.argv.slice(2)
function computeCrypto (cryptoCode, value) {
function computeCrypto(cryptoCode, value) {
try {
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
const unitScale = cryptoRec.unitScale
@ -80,9 +80,9 @@ settingsLoader.loadLatest()
console.log('Success.')
process.exit(0)
})
.catch(console.log)
.catch(e => console.log(e.message))
})
.catch(console.log)
.catch(e => console.log(e.message))
})
.catch(console.log)
.catch(e => console.log(e.message))
})