aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-11-28 14:16:21 +0100
committerLars Knoll <lars.knoll@digia.com>2012-11-28 14:22:10 +0100
commitb73d5145973787ab2794c569f8e3be29239be31e (patch)
treefdb9aef61b165d074590509d08b87d300696cb79 /main.cpp
parent97a281d4b3534f74eb9c767767e622742f9faf91 (diff)
Tune the message property (value) of SytaxError a bit.
Change-Id: I231eb1eeb8f01461ea61b3989743bbd01256e251 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/main.cpp b/main.cpp
index efe2b75b9b..47e4747922 100644
--- a/main.cpp
+++ b/main.cpp
@@ -122,14 +122,7 @@ static void showException(QQmlJS::VM::ExecutionContext *ctx)
}
for (; msg; msg = msg->next) {
- if (msg->fileName)
- std::cerr << qPrintable(msg->fileName->toQString());
- std::cerr << ':' << msg->startLine << ':' << msg->startColumn << ": ";
- if (msg->type == QQmlJS::VM::DiagnosticMessage::Error)
- std::cerr << "error";
- else
- std::cerr << "warning";
- std::cerr << ": " << qPrintable(msg->message->toQString()) << std::endl;
+ std::cerr << qPrintable(msg->buildFullMessage(ctx)->toQString()) << std::endl;
}
} else {
std::cerr << "Uncaught exception: " << qPrintable(e->value.toString(ctx)->toQString()) << std::endl;