Subversion Repositories public iLand

Rev

Rev 295 | Rev 346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 295 Rev 321
Line 55... Line 55...
55
{
55
{
56
    DebugTimer t("execute javascript");
56
    DebugTimer t("execute javascript");
57
    if (mEngine)
57
    if (mEngine)
58
        mEngine->evaluate(cmd);
58
        mEngine->evaluate(cmd);
59
    if (mEngine->hasUncaughtException()) {
59
    if (mEngine->hasUncaughtException()) {
60
        int line = mEngine->uncaughtExceptionLineNumber();
-
 
-
 
60
        //int line = mEngine->uncaughtExceptionLineNumber();
61
        QString msg = QString( "Script Error occured: %1\n").arg( mEngine->uncaughtException().toString());
61
        QString msg = QString( "Script Error occured: %1\n").arg( mEngine->uncaughtException().toString());
62
        msg+=mEngine->uncaughtExceptionBacktrace().join("\n");
62
        msg+=mEngine->uncaughtExceptionBacktrace().join("\n");
63
        return msg;
63
        return msg;
64
    } else {
64
    } else {
65
        return QString();
65
        return QString();