mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
getshared: when connection fails, report full error message
This commit is contained in:
parent
659821c7bb
commit
4c0880b9c9
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue