From 76a5616bbe764a5c18bd2b3140c7dd7cb24ecdef Mon Sep 17 00:00:00 2001 From: GLolol Date: Sat, 1 Nov 2014 11:08:36 -0700 Subject: [PATCH] Owner: improve error on loading missing plugins --- plugins/Owner/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index 46f3cbe55..6f611ff4e 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -196,7 +196,8 @@ class Owner(callbacks.Plugin): except ImportError as e: e = str(e) if e.endswith(name): - s = 'No plugin named %s exists.' % utils.str.dqrepr(name) + s = 'Failed to load {0}: No plugin named {0} exists.'.format( + utils.str.dqrepr(name)) elif "No module named 'config'" in e: s = ("Failed to load %s: This plugin is incompatible " "with your current Python version. If this error is appearing "