Lines Matching refs:ErrMsg
111 bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix) {
112 if (!ErrMsg)
121 *ErrMsg = prefix + ": " + buffer;
123 *ErrMsg = prefix + ": Unknown error";
124 *ErrMsg += " (0x" + llvm::utohexstr(LastError) + ")";
131 std::string *ErrMsg) {
165 MakeErrMsg(ErrMsg, fname + ": Can't open file for " +
177 unsigned MemoryLimit, std::string *ErrMsg,
180 if (ErrMsg)
181 *ErrMsg = "program not executable";
199 MakeErrMsg(ErrMsg, std::string("Unable to convert command-line to UTF-16"));
215 MakeErrMsg(ErrMsg, "Unable to convert environment variable to UTF-16");
236 si.hStdInput = RedirectIO(Redirects[0], 0, ErrMsg);
238 MakeErrMsg(ErrMsg, "can't redirect stdin");
241 si.hStdOutput = RedirectIO(Redirects[1], 1, ErrMsg);
244 MakeErrMsg(ErrMsg, "can't redirect stdout");
255 MakeErrMsg(ErrMsg, "can't dup stderr to stdout");
260 si.hStdError = RedirectIO(Redirects[2], 2, ErrMsg);
264 MakeErrMsg(ErrMsg, "can't redirect stderr");
279 MakeErrMsg(ErrMsg,
304 MakeErrMsg(ErrMsg, std::string("Couldn't execute program '") +
333 MakeErrMsg(ErrMsg, std::string("Unable to set memory limit"));
412 bool WaitUntilChildTerminates, std::string *ErrMsg,
430 if (ErrMsg)
431 MakeErrMsg(ErrMsg, "Failed to terminate timed-out program");
471 if (ErrMsg)
472 MakeErrMsg(ErrMsg, "Failed getting status for program");