diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 20:50:13 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 20:50:13 +0000 |
| commit | 3222b9be0472bb72e1574d8d85bdc712aa8b84fa (patch) | |
| tree | 58364f8692dea0fcaf08df33e15247a1502a3144 /llvm/lib/System/Unix/Program.inc | |
| parent | e84a9daa1614b2b140283015a7308a518188b8c8 (diff) | |
| download | bcm5719-llvm-3222b9be0472bb72e1574d8d85bdc712aa8b84fa.tar.gz bcm5719-llvm-3222b9be0472bb72e1574d8d85bdc712aa8b84fa.zip | |
Make Unix.h:MakeErrMsg separate the prefix and errno string, so we get:
clang: error: unable to make temporary file: /etc/cc: can't make
unique filename: Permission denied
instead of
clang: error: unable to make temporary file: /etc/cc: can't make
unique filenamePermission denied
for example.
Also, audited the uses of MakeErrMsg to make the prefix strings
consistent (not end with newline/punctuation/space/": ").
llvm-svn: 69626
Diffstat (limited to 'llvm/lib/System/Unix/Program.inc')
| -rw-r--r-- | llvm/lib/System/Unix/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 2426900578b..cdc6fee6094 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/lib/System/Unix/Program.inc @@ -99,7 +99,7 @@ static bool RedirectIO(const Path *Path, int FD, std::string* ErrMsg) { int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY|O_CREAT, 0666); if (InFD == -1) { MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " - + (FD == 0 ? "input" : "output") + "!\n"); + + (FD == 0 ? "input" : "output")); return true; } |

