From 4c0880b9c96dc32a5aa0ac10dcb51c0af26dca4f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 May 2009 00:31:17 +0900 Subject: [PATCH] getshared: when connection fails, report full error message --- ankiqt/ui/getshared.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/getshared.py b/ankiqt/ui/getshared.py index 1850790c0..1e72c6e16 100644 --- a/ankiqt/ui/getshared.py +++ b/ankiqt/ui/getshared.py @@ -65,7 +65,8 @@ class GetShared(QDialog): self.parent.setProgressParent(None) self.form.search.setFocus() if err: - showInfo(_("Unable to connect to server."), parent=self) + showInfo(_("Unable to connect to server.") + "\n" + + self.http.errorString(), parent=self) self.close() return data = self.http.readAll() @@ -172,7 +173,8 @@ class GetShared(QDialog): self.parent.finishProgress() self.parent.setProgressParent(None) if err: - showInfo(_("Unable to connect to server."), parent=self) + showInfo(_("Unable to connect to server.") + "\n" + + self.http.errorString(), parent=self) self.close() return data = self.http.readAll()