projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b70a05a
)
raw_fd_ostream: Be more verbose about the reason when opening a file fails.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 3 Oct 2013 16:59:14 +0000
(16:59 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 3 Oct 2013 16:59:14 +0000
(16:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191911
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/raw_ostream.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/raw_ostream.cpp
b/lib/Support/raw_ostream.cpp
index 92fa8b50a15ef848841a27a5c408d67e40cc57c9..cb9648981a36a851828144d9d8d5cab41192f911 100644
(file)
--- a/
lib/Support/raw_ostream.cpp
+++ b/
lib/Support/raw_ostream.cpp
@@
-447,7
+447,8
@@
raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
error_code EC = sys::fs::openFileForWrite(Filename, FD, Flags);
if (EC) {
- ErrorInfo = "Error opening output file '" + std::string(Filename) + "'";
+ ErrorInfo = "Error opening output file '" + std::string(Filename) + "': " +
+ EC.message();
ShouldClose = false;
return;
}