Better bad credentials exception detection

This commit is contained in:
Jordan Brown
2021-08-28 13:57:00 -04:00
parent d5ade75025
commit f10b31c18d
@@ -137,7 +137,8 @@ namespace Tgstation.Server.Host.Components.Repository
/// <param name="exception">The current <see cref="LibGit2SharpException"/>.</param>
static void CheckBadCredentialsException(LibGit2SharpException exception)
{
if (exception.Message == "too many redirects or authentication replays")
if (exception.Message == "too many redirects or authentication replays"
|| exception.Message == ErrorCode.RepoCredentialsRequired.Describe())
throw new JobException("Bad git credentials exchange!", exception);
}