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