From c4c4b79f29fc78b2ef65b939677997896ce9624e Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Thu, 20 Aug 2020 13:01:31 -0700 Subject: [PATCH] add slightly more verbose debug message --- src/common/file_stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/file_stream.cpp b/src/common/file_stream.cpp index 6d0645dc3..78cbb12fa 100755 --- a/src/common/file_stream.cpp +++ b/src/common/file_stream.cpp @@ -175,8 +175,8 @@ void TemporaryFile::MakeTemp(const std::string &base) { // open again with c++ streamBuf1_.reset(new std::filebuf()); auto ret = static_cast(streamBuf1_.get())->open(name, std::ios::out | std::ios_base::binary); - ABORT_IF(!streamBuf1_, "File cannot be temp opened", name); - ABORT_IF(ret != streamBuf1_.get(), "Return value is not equal to streambuf pointer, that is weird"); + ABORT_IF(!streamBuf1_, "File {} cannot be temp opened", name); + ABORT_IF(ret != streamBuf1_.get(), "Return value ({}) is not equal to streambuf pointer ({}), that is weird.", (size_t)ret, (size_t)streamBuf1_.get()); this->init(streamBuf1_.get());