mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Clearer cog error messages
This commit is contained in:
parent
3709d79f5b
commit
3d53d4e88c
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user