mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Output friendly errors
This commit is contained in:
@@ -38,8 +38,7 @@
|
||||
|
||||
using namespace Tomahawk;
|
||||
using namespace Accounts;
|
||||
class JobStatusView;
|
||||
class ErrorStatusMessage;
|
||||
|
||||
|
||||
static QPixmap* s_icon = 0;
|
||||
|
||||
@@ -349,8 +348,11 @@ SpotifyAccount::resolverMessage( const QString &msgType, const QVariantMap &msg
|
||||
{
|
||||
const QString error = msg.value( "msg" ).toString();
|
||||
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 ) ) );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user