From bae9ff1a69c9c9267f8b8d8bce221ff77a6b87ef Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Wed, 14 Aug 2019 18:30:18 +0000 Subject: [PATCH] [Support][NFC] Fix error message for posix_spawn_file_actions_addopen failed call Seems like a copy-paste from couple lines above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368899 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Program.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index 9f641c4f771..520685a0e98 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -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( FileActions, FD, File, 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; } #endif -- 2.40.0