Fix which JobException is thrown for git credentials errors

This commit is contained in:
Jordan Brown
2020-04-24 19:30:16 -04:00
parent 23aca07cc9
commit 6ad3a0b2ee
@@ -92,7 +92,7 @@ namespace Tgstation.Server.Host.Components.Repository
if (supportsAnonymous)
return new DefaultCredentials();
if (!hasCreds)
if (supportsUserPass)
throw new JobException("Remote does not support anonymous authentication!");
throw new JobException("Server does not support anonymous or username/password authentication!");