From b61bd2d3115bb50f2b60f282e0bce290c3b8da06 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11> Date: Tue, 22 Jan 2008 04:07:50 +0000 Subject: [PATCH] r1497@opsdev009 (orig r78879): mcslee | 2008-01-21 20:04:30 -0800 Thrift CSharp build to check compiler return code Summary: If non-zero, toss an error to the log Reviewed By: dreiss Other Notes: Submitted by Will Palmeri git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@767 41a61cd8-c433-0410-bb1c-e256eeef9e11 --- lib/csharp/ThriftMSBuildTask/ThriftBuild.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/csharp/ThriftMSBuildTask/ThriftBuild.cs b/lib/csharp/ThriftMSBuildTask/ThriftBuild.cs index 9cf5f41..a2bb641 100644 --- a/lib/csharp/ThriftMSBuildTask/ThriftBuild.cs +++ b/lib/csharp/ThriftMSBuildTask/ThriftBuild.cs @@ -175,6 +175,11 @@ namespace ThriftMSBuildTask p.StartInfo.RedirectStandardOutput = false; p.Start(); p.WaitForExit(); + if (p.ExitCode != 0) + { + LogMessage("thrift.exe failed to compile " + thriftFile, MessageImportance.High); + return false; + } } Csc csc = new Csc(); -- 2.11.4.GIT