[PATCH] D36818: [llvm-dlltool] Improve an error message when unable to open files. NFC.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 23:06:38 PDT 2017
mstorsjo created this revision.
Herald added subscribers: inglorion, mehdi_amini.
https://reviews.llvm.org/D36818
Files:
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
Index: lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
===================================================================
--- lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
+++ lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
@@ -64,7 +64,7 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36818.111467.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170817/45e22e9a/attachment.bin>
More information about the llvm-commits
mailing list