From bcd4f87414a191b49b093e6094efd885322d24b5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 30 Dec 2003 10:26:18 -0500 Subject: BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error. --- Source/cmSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9716dc6..06ba069 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand( } } } - else + else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error) { std::cerr << cmsysProcess_GetErrorString(cp) << "\n"; result = false; -- cgit v0.12