]> git.sesse.net Git - casparcg/blobdiff - protocol/amcp/AMCPCommandQueue.cpp
[main] added missing include
[casparcg] / protocol / amcp / AMCPCommandQueue.cpp
index b49015e99f33c49d5d34d1904706df4329d8a8ed..e1b60b9f85e869e35aa7fcf1ba946dfdd18a53d3 100644 (file)
@@ -114,6 +114,12 @@ void AMCPCommandQueue::AddCommand(AMCPCommand::ptr_type pCurrentCommand)
                                CASPAR_LOG(error) << get_message_and_context(e) << " Turn on log level debug for stacktrace.";
                                pCurrentCommand->SetReplyString(L"404 " + pCurrentCommand->print() + L" FAILED\r\n");
                        }
+                       catch (const expected_user_error& e)
+                       {
+                               CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(debug);
+                               CASPAR_LOG(info) << get_message_and_context(e) << " Check syntax. Turn on log level debug for stacktrace.";
+                               pCurrentCommand->SetReplyString(L"403 " + pCurrentCommand->print() + L" FAILED\r\n");
+                       }
                        catch (const user_error& e)
                        {
                                CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(debug);