Lines Matching refs:ErrMsg
108 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
109 if (!ErrMsg)
118 *ErrMsg = prefix + ": " + buffer;
120 *ErrMsg = prefix + ": Unknown error";
121 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
128 std::string *ErrMsg) {
162 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
174 unsigned MemoryLimit, std::string *ErrMsg) {
176 if (ErrMsg)
177 *ErrMsg = "program not executable";
195 MakeErrMsg(ErrMsg, std::string("Unable to convert command-line to UTF-16"));
211 MakeErrMsg(ErrMsg, "Unable to convert environment variable to UTF-16");
232 si.hStdInput = RedirectIO(Redirects[0], 0, ErrMsg);
234 MakeErrMsg(ErrMsg, "can't redirect stdin");
237 si.hStdOutput = RedirectIO(Redirects[1], 1, ErrMsg);
240 MakeErrMsg(ErrMsg, "can't redirect stdout");
251 MakeErrMsg(ErrMsg, "can't dup stderr to stdout");
256 si.hStdError = RedirectIO(Redirects[2], 2, ErrMsg);
260 MakeErrMsg(ErrMsg, "can't redirect stderr");
275 MakeErrMsg(ErrMsg,
296 MakeErrMsg(ErrMsg, std::string("Couldn't execute program '") +
325 MakeErrMsg(ErrMsg, std::string("Unable to set memory limit"));
397 bool WaitUntilChildTerminates, std::string *ErrMsg,
415 if (ErrMsg)
416 MakeErrMsg(ErrMsg, "Failed to terminate timed-out program");
456 if (ErrMsg)
457 MakeErrMsg(ErrMsg, "Failed getting status for program");