[asan] Better error message in coverage.

llvm-svn: 224762
This commit is contained in:
Evgeniy Stepanov 2014-12-23 10:12:51 +00:00
parent 6e27c6d450
commit 874b2bb228
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ void CovUpdateMapping(uptr caller_pc) {
internal_getpid());
CHECK_LE(res, tmp_path.size());
uptr map_fd = OpenFile(tmp_path.data(), true);
if (internal_iserror(map_fd)) {
Report(" Coverage: failed to open %s for writing\n", tmp_path.data());
if (internal_iserror(map_fd, &err)) {
Report(" Coverage: failed to open %s for writing: %d\n", tmp_path.data(), err);
Die();
}