mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Only show JS errors in tomahawk debug builds
This commit is contained in:
parent
85d70f3408
commit
80e1946fa4
@ -20,6 +20,7 @@
|
||||
|
||||
#include "artist.h"
|
||||
#include "album.h"
|
||||
#include "config.h"
|
||||
#include "pipeline.h"
|
||||
#include "sourcelist.h"
|
||||
#include "utils/tomahawkutils.h"
|
||||
@ -192,10 +193,8 @@ void
|
||||
ScriptEngine::javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& sourceID )
|
||||
{
|
||||
tLog() << "JAVASCRIPT:" << m_scriptPath << message << lineNumber << sourceID;
|
||||
/// I guess there is somereason for a assert in here, maybe fatal js errors, but
|
||||
/// undefined is not so fatal
|
||||
#ifndef ENABLE_HEADLESS
|
||||
#ifdef QT_DEBUG
|
||||
#ifdef DEBUG_BUILD
|
||||
QMessageBox::critical( 0, "Script Resolver Error", QString( "%1 %2 %3 %4" ).arg( m_scriptPath ).arg( message ).arg( lineNumber ).arg( sourceID ) );
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user