Try return value instead of exception.
MODIFY
WalletWasabi.QualityGate/Program.cs
WalletWasabi.QualityGate/Program.cs
@@ -3,15 +3,18 @@ using System;
namespace WalletWasabi.QualityGate
{
// This software runs on CI and fails if the quality of a pull request does not conform to our rules.
- public class Program
+ public static class Program
{
- private static void Main(string[] args)
+ public static int Main(string[] args)
{
var command = args[0];
if (command == "prtoolarge")
{
- throw new Exception("The pull request is too large. Please break it down to smaller pull requests.");
+ return -1;
+ // throw new Exception("The pull request is too large. Please break it down to smaller pull requests.");
}
+
+ return 0;
}
}
}

Try return value instead of exception.