mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
Improve plug-in update error message (#5695)
The current error message does not share any information about the underlying problem why updating failed. Print the error to the logs.
This commit is contained in:
parent
77523f7bec
commit
53d97ce0c6
@ -93,17 +93,18 @@ class PluginManager(CoreSysAttributes):
|
||||
continue
|
||||
|
||||
_LOGGER.info(
|
||||
"%s does not have the latest version %s, updating",
|
||||
"Plugin %s is not up-to-date, latest version %s, updating",
|
||||
plugin.slug,
|
||||
plugin.latest_version,
|
||||
)
|
||||
try:
|
||||
await plugin.update()
|
||||
except HassioError:
|
||||
except HassioError as ex:
|
||||
_LOGGER.error(
|
||||
"Can't update %s to %s, the Supervisor healthy could be compromised!",
|
||||
"Can't update %s to %s: %s",
|
||||
plugin.slug,
|
||||
plugin.latest_version,
|
||||
str(ex),
|
||||
)
|
||||
self.sys_resolution.create_issue(
|
||||
IssueType.UPDATE_FAILED,
|
||||
|
Loading…
x
Reference in New Issue
Block a user