mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Custom error messages.
This commit is contained in:
@@ -87,7 +87,7 @@ Api_v2_0::playback( QxtWebRequestEvent* event, const QString& command )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
JSON_ERROR( event, "Skipping to the next track failed." );
|
JSON_ERROR( event, "Starting the playback failed." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( command == "pause" )
|
else if ( command == "pause" )
|
||||||
@@ -98,7 +98,7 @@ Api_v2_0::playback( QxtWebRequestEvent* event, const QString& command )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
JSON_ERROR( event, "Skipping to the next track failed." );
|
JSON_ERROR( event, "Pausing the current track failed." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( command == "stop" )
|
else if ( command == "stop" )
|
||||||
@@ -109,7 +109,7 @@ Api_v2_0::playback( QxtWebRequestEvent* event, const QString& command )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
JSON_ERROR( event, "Skipping to the next track failed." );
|
JSON_ERROR( event, "Stopping the current track failed." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( command == "lowervolume" )
|
else if ( command == "lowervolume" )
|
||||||
@@ -120,7 +120,7 @@ Api_v2_0::playback( QxtWebRequestEvent* event, const QString& command )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
JSON_ERROR( event, "Skipping to the next track failed." );
|
JSON_ERROR( event, "Lowering volume failed." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( command == "raisevolume" )
|
else if ( command == "raisevolume" )
|
||||||
@@ -131,7 +131,7 @@ Api_v2_0::playback( QxtWebRequestEvent* event, const QString& command )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
JSON_ERROR( event, "Skipping to the next track failed." );
|
JSON_ERROR( event, "Raising volume failed." );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user