use util.inherits it's good for you
Friendly errors reported on connect dialog