provide reason for failure to load plugin

This commit is contained in:
Brian S. Stephan 2015-05-14 21:43:35 -05:00
parent 0428c30faf
commit 7b93c7d63c
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ class IRCBot(irc.client.SimpleIRCClient):
log.error("Error loading '{0:s}'".format(plugin_path))
log.exception(e)
if feedback:
self.privmsg(dest, "Plugin '{0:s}' could not be loaded.".format(plugin_path))
self.privmsg(dest, "Plugin '{0:s}' could not be loaded: {1:s}".format(plugin_path, e))
def handle_unload(self, connection, event, match):
"""Handle IRC requests to unload a plugin."""