mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[Downloader] Improve InstalledCog converter's error message (#3409)
* Update converters.py * Create 3409.misc.rst
This commit is contained in:
@@ -15,6 +15,8 @@ class InstalledCog(InstalledModule):
|
||||
|
||||
cog = discord.utils.get(await downloader.installed_cogs(), name=arg)
|
||||
if cog is None:
|
||||
raise commands.BadArgument(_("That cog is not installed"))
|
||||
raise commands.BadArgument(
|
||||
_("Cog `{cog_name}` is not installed.").format(cog_name=arg)
|
||||
)
|
||||
|
||||
return cog
|
||||
|
||||
Reference in New Issue
Block a user