Skip to content

Commit 08a0984

Browse files
committed
Add more diagnositic information to bytes written INVARIANT
1 parent 2fccb05 commit 08a0984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/piped_process.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ piped_processt::send_responset piped_processt::send(const std::string &message)
378378
}
379379
INVARIANT(
380380
message_size == bytes_written,
381-
"Number of bytes written to sub process must match message size.");
381+
"Number of bytes written to sub process must match message size."
382+
"Message size is " +
383+
std::to_string(message_size) + " but " + std::to_string(bytes_written) +
384+
" bytes were written.");
382385
#else
383386
// send message to solver process
384387
int send_status = fputs(message.c_str(), command_stream);

0 commit comments

Comments
 (0)