[appimage] showing an error dialog when it was not possible to download the file

This commit is contained in:
Vinicius Moreira
2019-10-15 16:49:00 -03:00
parent 0957a4fa15
commit dfe23df4b6
6 changed files with 11 additions and 10 deletions

View File

@@ -336,6 +336,10 @@ class AppImageManager(SoftwareManager):
watcher.show_message(title=self.i18n['error'],
body='Could extract content from {}'.format(bold(file_name)),
type_=MessageType.ERROR)
else:
watcher.show_message(title=self.i18n['error'],
body=self.i18n['appimage.install.download.error'].format(bold(pkg.url_download)),
type_=MessageType.ERROR)
handler.handle(SystemProcess(new_subprocess(['rm', '-rf', out_dir])))
return False