Skip to content

Commit 3f26056

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/piped_process.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ 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 " + std::to_string(message_size) + " but " +
383+
std::to_string(bytes_written) + " bytes were written.");
382384
#else
383385
// send message to solver process
384386
int send_status = fputs(message.c_str(), command_stream);

0 commit comments

Comments
 (0)