- lyxerr.print("LyXComm: Pipes are closed. Could not send "+ msg);
- } else if (write(outfd, msg.c_str(), msg.length()) < 0) {
- lyxerr.print("LyXComm: Error sending message: " + msg);
- lyxerr.print(strerror(errno));
- lyxerr.print("LyXComm: Resetting connection");
+ lyxerr << "LyXComm: Pipes are closed. Could not send "
+ << msg << endl;
+ } else if (::write(outfd, msg.c_str(), msg.length()) < 0) {
+ lyxerr << "LyXComm: Error sending message: " << msg
+ << '\n' << strerror(errno)
+ << "\nLyXComm: Resetting connection" << endl;