mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 19:10:19 +00:00
[llvm-dlltool] Improve an error message when unable to open files. NFC.
Differential Revision: https://reviews.llvm.org/D36818 llvm-svn: 311069
This commit is contained in:
parent
ebdc82f5ba
commit
49a74fbbbc
@ -64,7 +64,7 @@ Optional<MemoryBufferRef> openFile(StringRef Path) {
|
||||
ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path);
|
||||
|
||||
if (std::error_code EC = MB.getError()) {
|
||||
llvm::errs() << "fail openFile: " << EC.message() << "\n";
|
||||
llvm::errs() << "cannot open file " << Path << ": " << EC.message() << "\n";
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user