Better error message in ConnectCommand