We throw the job exception before this point

This commit is contained in:
Jordan Brown
2020-12-09 16:06:25 -05:00
parent 1df12a29c1
commit 3533cba8a1
@@ -271,7 +271,7 @@ namespace Tgstation.Server.Host.Components.Repository
committerEmail);
if (RemoteGitProvider == Api.Models.RemoteGitProvider.Unknown)
throw new JobException(ErrorCode.RepoTestMergeInvalidRemote);
throw new InvalidOperationException("Cannot test merge with an Unknown RemoteGitProvider!");
var commitMessage = String.Format(
CultureInfo.InvariantCulture,