Detect git authentication failure (#5420)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
Jan
2023-12-24 01:23:39 +01:00
committed by GitHub
parent da8cabaf50
commit ecccea6781
3 changed files with 43 additions and 1 deletions

View File

@@ -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(
_(