]> git.sesse.net Git - casparcg/blobdiff - protocol/amcp/AMCPCommandQueue.cpp
log: \r and \n are printable for logging.
[casparcg] / protocol / amcp / AMCPCommandQueue.cpp
index a77adf54bfa881a5ae5a8474bbb0c792874280dc..7a50158671d9be5f26d1ba3463490bc9f08feb9e 100644 (file)
@@ -48,7 +48,7 @@ void AMCPCommandQueue::AddCommand(AMCPCommandPtr pCurrentCommand)
                {\r
                        CASPAR_LOG(error) << "AMCP Command Queue Overflow.";\r
                        CASPAR_LOG(error) << "Failed to execute command:" << pCurrentCommand->print();\r
-                       pCurrentCommand->SetReplyString(L"500 FAILED");\r
+                       pCurrentCommand->SetReplyString(L"500 FAILED\r\n");\r
                        pCurrentCommand->SendReply();\r
                }\r
                catch(...)\r
@@ -72,6 +72,7 @@ void AMCPCommandQueue::AddCommand(AMCPCommandPtr pCurrentCommand)
                        {\r
                                CASPAR_LOG_CURRENT_EXCEPTION();\r
                                CASPAR_LOG(error) << "Failed to execute command:" << pCurrentCommand->print();\r
+                               pCurrentCommand->SetReplyString(L"500 FAILED\r\n");\r
                        }\r
                                \r
                        pCurrentCommand->SendReply();\r