connection: Fix error reporting if TCP creds dialog fails

This commit is contained in:
Cole Robinson 2014-07-04 17:37:22 -04:00
parent 1e77c05c4e
commit f66c4ef3e4

View File

@ -953,11 +953,8 @@ class vmmConnection(vmmGObject):
def _do_creds_password(self, creds): def _do_creds_password(self, creds):
try: try:
return connectauth.creds_dialog(creds) return connectauth.creds_dialog(creds)
except Exception, e: except:
# Detailed error message, in English so it can be Googled. logging.debug("Launching creds dialog failed", exc_info=True)
self._connectError = (
"Failed to get credentials for '%s':\n%s\n%s" %
(self.get_uri(), str(e), "".join(traceback.format_exc())))
return -1 return -1
def _open_thread(self): def _open_thread(self):