BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error.

This commit is contained in:
Brad King 2003-12-30 10:26:18 -05:00
parent ae69928e69
commit bcd4f87414
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand(
} }
} }
} }
else else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error)
{ {
std::cerr << cmsysProcess_GetErrorString(cp) << "\n"; std::cerr << cmsysProcess_GetErrorString(cp) << "\n";
result = false; result = false;