Skip to content

Commit

Permalink
Print messages on failure
Browse files Browse the repository at this point in the history
Was left out for prune and list actions
  • Loading branch information
samuel-w committed Sep 11, 2020
1 parent 6e3e540 commit 3cb6325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vorta/views/archive_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def prune_action(self):
thread.result.connect(self.prune_result)
self._toggle_all_buttons(False)
thread.start()
else:
self._set_status(params['message'])

def prune_result(self, result):
if result['returncode'] == 0:
Expand All @@ -212,6 +214,8 @@ def list_action(self):
thread.result.connect(self.list_result)
self._toggle_all_buttons(False)
thread.start()
else:
self._set_status(params['message'])

def list_result(self, result):
self._toggle_all_buttons(True)
Expand Down

0 comments on commit 3cb6325

Please sign in to comment.