diff --git a/changelog.d/downloader/3409.misc.rst b/changelog.d/downloader/3409.misc.rst new file mode 100644 index 000000000..d2bc0e365 --- /dev/null +++ b/changelog.d/downloader/3409.misc.rst @@ -0,0 +1 @@ +Improve error message when user passes cog that isn't installed to a command that only accepts installed cogs. diff --git a/redbot/cogs/downloader/converters.py b/redbot/cogs/downloader/converters.py index 5b7357579..483918d4a 100644 --- a/redbot/cogs/downloader/converters.py +++ b/redbot/cogs/downloader/converters.py @@ -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