mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Send exception why the update fails (#1938)
This commit is contained in:
parent
d73c10f874
commit
e3ee9a299f
@ -164,7 +164,7 @@ class Core(CoreSysAttributes):
|
|||||||
# Check if system is healthy
|
# Check if system is healthy
|
||||||
if not self.supported:
|
if not self.supported:
|
||||||
_LOGGER.critical("System running in a unsupported environment!")
|
_LOGGER.critical("System running in a unsupported environment!")
|
||||||
elif not self.healthy:
|
if not self.healthy:
|
||||||
_LOGGER.critical(
|
_LOGGER.critical(
|
||||||
"System running in a unhealthy state and need manual intervention!"
|
"System running in a unhealthy state and need manual intervention!"
|
||||||
)
|
)
|
||||||
@ -180,11 +180,12 @@ class Core(CoreSysAttributes):
|
|||||||
_LOGGER.warning("Ignore Supervisor updates!")
|
_LOGGER.warning("Ignore Supervisor updates!")
|
||||||
else:
|
else:
|
||||||
await self.sys_supervisor.update()
|
await self.sys_supervisor.update()
|
||||||
except SupervisorUpdateError:
|
except SupervisorUpdateError as err:
|
||||||
_LOGGER.critical(
|
_LOGGER.critical(
|
||||||
"Can't update supervisor! This will break some Add-ons or affect "
|
"Can't update supervisor! This will break some Add-ons or affect "
|
||||||
"future version of Home Assistant!"
|
"future version of Home Assistant!"
|
||||||
)
|
)
|
||||||
|
self.sys_capture_exception(err)
|
||||||
|
|
||||||
# Start addon mark as initialize
|
# Start addon mark as initialize
|
||||||
await self.sys_addons.boot(AddonStartup.INITIALIZE)
|
await self.sys_addons.boot(AddonStartup.INITIALIZE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user