mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Fix which JobException is thrown for git credentials errors
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user