update_manager: report errors in update response
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
e4a670a380
commit
59cc8c6c7b
|
@ -159,7 +159,7 @@ class GitDeploy(AppDeploy):
|
|||
await self.repo.reset()
|
||||
else:
|
||||
await self.repo.pull()
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
if self.repo.repo_corrupt:
|
||||
self._is_valid = False
|
||||
self._save_state()
|
||||
|
@ -167,7 +167,7 @@ class GitDeploy(AppDeploy):
|
|||
event_loop.delay_callback(
|
||||
.2, self.cmd_helper.notify_update_refreshed
|
||||
)
|
||||
raise self.log_exc("Error updating git repo")
|
||||
raise self.log_exc(str(e))
|
||||
|
||||
async def _update_dependencies(self,
|
||||
inst_hash: Optional[str],
|
||||
|
|
|
@ -285,9 +285,7 @@ class UpdateManager:
|
|||
await updater.update()
|
||||
except Exception as e:
|
||||
self.cmd_helper.notify_update_response(
|
||||
f"Error updating {app}")
|
||||
self.cmd_helper.notify_update_response(
|
||||
str(e), is_complete=True)
|
||||
f"Error updating {app}: {e}", is_complete=True)
|
||||
raise
|
||||
finally:
|
||||
self.cmd_helper.clear_update_info()
|
||||
|
@ -352,11 +350,9 @@ class UpdateManager:
|
|||
self.cmd_helper.notify_update_response(
|
||||
"Full Update Complete", is_complete=True)
|
||||
except Exception as e:
|
||||
self.cmd_helper.notify_update_response(
|
||||
f"Error updating {app_name}")
|
||||
self.cmd_helper.set_full_complete(True)
|
||||
self.cmd_helper.notify_update_response(
|
||||
str(e), is_complete=True)
|
||||
f"Error updating {app_name}: {e}", is_complete=True)
|
||||
finally:
|
||||
self.cmd_helper.clear_update_info()
|
||||
return "ok"
|
||||
|
|
Loading…
Reference in New Issue