diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/v4/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp index 2ae21914c4..b612a5d1ab 100644 --- a/tools/v4/main.cpp +++ b/tools/v4/main.cpp @@ -121,7 +121,7 @@ static void showException(QV4::ExecutionContext *ctx, const QV4::Exception &exce if (!e) { std::cerr << "Uncaught exception: " << qPrintable(exception.value().toString(ctx)->toQString()) << std::endl; } else { - std::cerr << "Uncaught exception: " << qPrintable(e->get(ctx->engine->newString(QStringLiteral("message")), 0).toString(ctx)->toQString()) << std::endl; + std::cerr << "Uncaught exception: " << qPrintable(QV4::Value::fromReturnedValue(e->get(ctx->engine->newString(QStringLiteral("message")), 0)).toString(ctx)->toQString()) << std::endl; } foreach (const QV4::ExecutionEngine::StackFrame &frame, exception.stackTrace()) { |