use console.error when applicable
This commit is contained in:
parent
e008eb93bc
commit
0aa457680c
5 changed files with 6 additions and 6 deletions
4
bin/hkdf
4
bin/hkdf
|
|
@ -8,8 +8,8 @@ const label = process.argv[2]
|
|||
const masterSeedHex = process.argv[3].trim()
|
||||
|
||||
if (process.argv.length !== 4) {
|
||||
console.log('hdkf <label> <masterKey>')
|
||||
console.log('masterKey should be in hex encoding.')
|
||||
console.error('hdkf <label> <masterKey>')
|
||||
console.error('masterKey should be in hex encoding.')
|
||||
process.exit(3)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const set = migrate.load(migrateConfig, migrateDir)
|
|||
|
||||
set.up(err => {
|
||||
if (err) {
|
||||
console.log('DB Migration failed: %s', err)
|
||||
console.error('DB Migration failed: %s', err)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ db.many('select data from user_config', 'exchanges')
|
|||
process.exit(0)
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('Error: %s', err)
|
||||
console.error('Error: %s', err)
|
||||
process.exit(1)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue