From 53d97ce0c6a0606e9b422b58ab8facce0b8722a1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 28 Feb 2025 15:34:35 +0100 Subject: [PATCH] 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. --- supervisor/plugins/manager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/supervisor/plugins/manager.py b/supervisor/plugins/manager.py index 628b0bdbe..4efc0b9ff 100644 --- a/supervisor/plugins/manager.py +++ b/supervisor/plugins/manager.py @@ -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,