Clearer cog error messages

This commit is contained in:
Twentysix 2016-05-23 14:44:01 +02:00
parent 3709d79f5b
commit 3d53d4e88c

View File

@ -62,14 +62,14 @@ class Owner:
except CogLoadError as e:
log.exception(e)
traceback.print_exc()
await self.bot.say("There was an issue loading the module."
" Check your logs for more information.")
await self.bot.say("There was an issue loading the module. Check"
" your console or logs for more information.")
except Exception as e:
log.exception(e)
traceback.print_exc()
await self.bot.say('Module was found and possibly loaded but '
'something went wrong.'
' Check your logs for more information.')
'something went wrong. Check your console '
'or logs for more information.')
else:
set_cog(module, True)
await self.disable_commands()
@ -149,7 +149,7 @@ class Owner:
log.exception(e)
traceback.print_exc()
await self.bot.say("That module could not be loaded. Check your"
" logs for more information.")
" console or logs for more information.")
else:
set_cog(module, True)
await self.disable_commands()
@ -286,7 +286,8 @@ class Owner:
await self.bot.say("Done.")
log.debug("changed avatar")
except Exception as e:
await self.bot.say("Error, check your logs for more information.")
await self.bot.say("Error, check your console or logs for "
"more information.")
log.exception(e)
traceback.print_exc()