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:
commit
a1afc9f082
1 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ const ticker = require('../lib/ticker')
|
||||||
|
|
||||||
const [toAddress, cryptoValue, cryptoCode] = process.argv.slice(2)
|
const [toAddress, cryptoValue, cryptoCode] = process.argv.slice(2)
|
||||||
|
|
||||||
function computeCrypto (cryptoCode, value) {
|
function computeCrypto(cryptoCode, value) {
|
||||||
try {
|
try {
|
||||||
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
||||||
const unitScale = cryptoRec.unitScale
|
const unitScale = cryptoRec.unitScale
|
||||||
|
|
@ -80,9 +80,9 @@ settingsLoader.loadLatest()
|
||||||
console.log('Success.')
|
console.log('Success.')
|
||||||
process.exit(0)
|
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))
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue