mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
raw_fd_ostream: Be more verbose about the reason when opening a file fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b70a05a871
commit
63fac20ec5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user