Improve error message to include information from the exception

This commit is contained in:
AdamPS 2023-01-23 15:51:52 +00:00
parent d20894a7c4
commit 788e2b43af
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ class PluginManager:
for plugin in config.get('plugins'):
try:
self.__load_plugin(plugin)
except BaseException:
logging.error('Error in loading the plugin: %s', plugin['id'])
except BaseException as e:
logging.error('Error in loading the plugin %s: %s', plugin['id'], e)
continue
# Initialize the plugins
for plugin in self.__plugins_on_init: