summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Filesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Filesystem.cpp')
-rw-r--r--lld/ELF/Filesystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Filesystem.cpp b/lld/ELF/Filesystem.cpp
index d3a965cc78a..75f7bda75a2 100644
--- a/lld/ELF/Filesystem.cpp
+++ b/lld/ELF/Filesystem.cpp
@@ -70,9 +70,9 @@ void elf::unlinkAsync(StringRef Path) {
// FileOutputBuffer doesn't touch a desitnation file until commit()
// is called. We use that class without calling commit() to predict
// if the given file is writable.
-bool elf::isFileWritable(StringRef Path) {
+bool elf::isFileWritable(StringRef Path, StringRef Desc) {
if (auto EC = FileOutputBuffer::create(Path, 1).getError()) {
- error("cannot open output file " + Path + ": " + EC.message());
+ error("cannot open " + Desc + " " + Path + ": " + EC.message());
return false;
}
return true;
OpenPOWER on IntegriCloud