Skip to content

Commit

Permalink
add slightly more verbose debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
emjotde committed Aug 20, 2020
1 parent 3f15573 commit c4c4b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/file_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ void TemporaryFile::MakeTemp(const std::string &base) {
// open again with c++
streamBuf1_.reset(new std::filebuf());
auto ret = static_cast<std::filebuf*>(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());

Expand Down

0 comments on commit c4c4b79

Please sign in to comment.