From f10b31c18df37cd065f6cc4365262b18e99e2bf3 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sat, 28 Aug 2021 13:53:50 -0400 Subject: [PATCH] Better bad credentials exception detection --- src/Tgstation.Server.Host/Components/Repository/Repository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Repository/Repository.cs b/src/Tgstation.Server.Host/Components/Repository/Repository.cs index 1f937039d2..8de7931585 100644 --- a/src/Tgstation.Server.Host/Components/Repository/Repository.cs +++ b/src/Tgstation.Server.Host/Components/Repository/Repository.cs @@ -137,7 +137,8 @@ namespace Tgstation.Server.Host.Components.Repository /// The current . 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); }