commit | 1e150185daeb953d8ed1b91cc9694bbacb5518e5 | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Tue Jan 22 04:04:30 2008 +0000 |
committer | Mark Slee <mcslee@apache.org> | Tue Jan 22 04:04:30 2008 +0000 |
tree | 512a90b7226459b4da6375a9d28e903f87d300f8 | |
parent | a9a4d481e08b44972324db1620871cd1a83a804f [diff] [blame] |
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: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665439 13f79535-47bb-0310-9956-ffa450edef68
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 @@ 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();