mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Better bad credentials exception detection
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user