diff --git a/bin/lamassu-send-coins b/bin/lamassu-send-coins index c47af7ff..324c3342 100755 --- a/bin/lamassu-send-coins +++ b/bin/lamassu-send-coins @@ -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)) })