Include instance name in the instance not found error (#6206)

This commit is contained in:
Jakub Kuczys 2023-07-24 20:00:23 +02:00 committed by GitHub
parent 6f920daeed
commit 7e05bec6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ def load_basic_configuration(instance_name_: str):
basic_config = config[_instance_name]
except KeyError:
print(
"Instance with this name doesn't exist."
f"Instance with name '{_instance_name}' doesn't exist."
" You can create new instance using `redbot-setup` prior to running the bot."
)
sys.exit(ExitCodes.INVALID_CLI_USAGE)