[Support][NFC] Fix error message for posix_spawn_file_actions_addopen failed call

Seems like a copy-paste from couple lines above.

llvm-svn: 368899
This commit is contained in:
Jan Korous 2019-08-14 18:30:18 +00:00
parent 6cca3ad43e
commit 14230f9926
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
if (int Err = posix_spawn_file_actions_addopen( if (int Err = posix_spawn_file_actions_addopen(
FileActions, FD, File, FileActions, FD, File,
FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666)) FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666))
return MakeErrMsg(ErrMsg, "Cannot dup2", Err); return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
return false; return false;
} }
#endif #endif