Pass on error message for repo adding. Fixes #12

This commit is contained in:
Manu 2018-11-13 09:08:24 +08:00
parent 617c8d1c37
commit 3ec781081d
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,8 @@ class AddRepoWindow(AddRepoBase, AddRepoUI):
thread.result.connect(self.run_result)
self.thread = thread # Needs to be connected to self for tests to work.
self.thread.start()
else:
self._set_status(params['message'])
def _set_status(self, text):
self.errorText.setText(text)
@ -97,3 +99,5 @@ class ExistingRepoWindow(AddRepoWindow):
thread.result.connect(self.run_result)
self.thread = thread # Needs to be connected to self for tests to work.
self.thread.start()
else:
self._set_status(params['message'])