1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Print out unexpected non-JSON messages.

This commit is contained in:
Christian Muehlhaeuser
2014-12-16 23:51:08 +01:00
parent 7125ba758f
commit 2f76f0c43e

View File

@@ -283,8 +283,8 @@ ControlConnection::handleMsg( msg_ptr msg )
// All control connection msgs are JSON
if ( !msg->is( Msg::JSON ) )
{
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format:" << qPrintable( msg->payload() );
Q_ASSERT( msg->is( Msg::JSON ) );
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format";
markAsFailed();
return;
}