getshared: when connection fails, report full error message

This commit is contained in:
Damien Elmes 2009-05-27 00:31:17 +09:00
parent 659821c7bb
commit 4c0880b9c9

View file

@ -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()