Fix error message.

Previously, this code printed out an error message like this

  ld.lld: error: --reproduce: failed to open /foo: cannot open /foo

Apparently "failed to open /foo:" part is redundant.

llvm-svn: 349571
This commit is contained in:
Rui Ueyama 2018-12-18 23:33:10 +00:00
parent f5ffa1a67c
commit 5961809640

View File

@ -407,8 +407,7 @@ void LinkerDriver::main(ArrayRef<const char *> ArgsArr) {
Tar->append("version.txt", getLLDVersion() + "\n");
make<std::unique_ptr<TarWriter>>(std::move(*ErrOrWriter));
} else {
error(Twine("--reproduce: failed to open ") + Path + ": " +
toString(ErrOrWriter.takeError()));
error("--reproduce: " + toString(ErrOrWriter.takeError()));
}
}