mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Detect git authentication failure (#5420)
Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
@@ -566,6 +566,20 @@ class Downloader(commands.Cog):
|
||||
await ctx.send(
|
||||
_("The repo name you provided is already in use. Please choose another name.")
|
||||
)
|
||||
except errors.AuthenticationError as err:
|
||||
await ctx.send(
|
||||
_(
|
||||
"Failed to authenticate or repository does not exist."
|
||||
" See logs for more information."
|
||||
)
|
||||
)
|
||||
log.exception(
|
||||
"Something went wrong whilst cloning %s (to revision: %s)",
|
||||
repo_url,
|
||||
branch,
|
||||
exc_info=err,
|
||||
)
|
||||
|
||||
except errors.CloningError as err:
|
||||
await ctx.send(
|
||||
_(
|
||||
|
||||
Reference in New Issue
Block a user