Skip to content
Snippets Groups Projects
Commit caff3268 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

[llvm-dlltool] Improve an error message when unable to open files. NFC.

Differential Revision: https://reviews.llvm.org/D36818

llvm-svn: 311069
parent 9d8ecb43
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ Optional<MemoryBufferRef> openFile(StringRef Path) { ...@@ -64,7 +64,7 @@ Optional<MemoryBufferRef> openFile(StringRef Path) {
ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path); ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path);
if (std::error_code EC = MB.getError()) { 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; return None;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment