mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Output friendly errors
This commit is contained in:
@@ -38,8 +38,7 @@
|
|||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
using namespace Accounts;
|
using namespace Accounts;
|
||||||
class JobStatusView;
|
|
||||||
class ErrorStatusMessage;
|
|
||||||
|
|
||||||
static QPixmap* s_icon = 0;
|
static QPixmap* s_icon = 0;
|
||||||
|
|
||||||
@@ -349,8 +348,11 @@ SpotifyAccount::resolverMessage( const QString &msgType, const QVariantMap &msg
|
|||||||
{
|
{
|
||||||
const QString error = msg.value( "msg" ).toString();
|
const QString error = msg.value( "msg" ).toString();
|
||||||
if( error.isEmpty() )
|
if( error.isEmpty() )
|
||||||
error = "Spotify: Got empty error message...Please report";
|
return;
|
||||||
|
|
||||||
|
if( msg.value( "isDebugMsg" ).toBool() )
|
||||||
|
tDebug( LOGVERBOSE ) << "SpotifyResolverError: " << error;
|
||||||
|
else
|
||||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( QString( "Spotify: %1" ).arg( error ) ) );
|
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( QString( "Spotify: %1" ).arg( error ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user