Better error information on connection error