From: kaliko Date: Sat, 2 May 2015 13:30:10 +0000 (+0200) Subject: Better explicit error msg on 'Failed to load plugin' X-Git-Tag: 0.14.0~10 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=113157e3ae7b1fd57654542030c3de9c03c4261a;p=mpd-sima.git Better explicit error msg on 'Failed to load plugin' --- diff --git a/sima/launch.py b/sima/launch.py index 4cc60e3..2f31491 100644 --- a/sima/launch.py +++ b/sima/launch.py @@ -61,7 +61,7 @@ def load_plugins(sima, source): try: mod_obj = __import__(module, fromlist=[plugin]) except ImportError as err: - logger.error('Failed to load plugin\'s module: ' + + logger.error('Failed to load "{}" plugin\'s module: '.format(plugin) + '{0} ({1})'.format(module, err)) sima.shutdown() sys.exit(1)