Changelog fails don't stop

This commit is contained in:
Cyberboss
2017-07-18 10:41:23 -04:00
parent 52d517241f
commit ac80fd8dc4
2 changed files with 17 additions and 18 deletions
+6 -6
View File
@@ -53,14 +53,14 @@ namespace TGCommandLine
if (gen_cl)
{
var res = Repo.GenerateChangelog(out string error2);
if(res != null)
{
OutputProc(res);
return ExitCode.ServerError;
}
res = Repo.PushChangelog();
if (res != null)
OutputProc(res);
else
{
res = Repo.PushChangelog();
if (res != null)
OutputProc(res);
}
}
var resu = Server.GetComponent<ITGCompiler>().Compile(true);
OutputProc(resu ? "Compilation started!" : "Compilation could not be started!");