added friendly error message for invalid password

This commit is contained in:
2017-05-01 00:45:41 +00:00
parent b07057d509
commit fc103ca6ee

View file

@ -140,7 +140,11 @@ class GlobalBindings {
})
}
}, err => {
log('Connection error:', err)
if (err.type == 4) {
log('Connection error: invalid server password')
} else {
log('Connection error:', err)
}
})
}