]> granicus.if.org Git - icinga2/commitdiff
Improve error message for socket errors in Livestatus
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 12:58:21 +0000 (14:58 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 12:58:21 +0000 (14:58 +0200)
fixes #10079

lib/livestatus/livestatusquery.cpp

index 804261f1d198a93724bb3a1322a9b31ac2960119..ef2affd44f0e6aa03739c6a52fba353b717df978 100644 (file)
@@ -674,7 +674,7 @@ void LivestatusQuery::SendResponse(const Stream::Ptr& stream, int code, const St
                try {
                        stream->Write(data.CStr(), data.GetLength());
                } catch (const std::exception&) {
-                       Log(LogCritical, "LivestatusQuery", "Cannot write to TCP socket.");
+                       Log(LogCritical, "LivestatusQuery", "Cannot write query response to socket.");
                }
        }
 }