aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/qml/script/shell/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/script/shell/main.cpp b/examples/qml/script/shell/main.cpp
index a4059122bf..4ea36f7e77 100644
--- a/examples/qml/script/shell/main.cpp
+++ b/examples/qml/script/shell/main.cpp
@@ -141,7 +141,7 @@ int main(int argc, char *argv[])
continue;
QJSValue result = eng->evaluate(contents, fileName, lineNumber);
- if (eng->hasUncaughtException()) {
+ if (result.isError()) {
fprintf (stderr, " %s\n\n", qPrintable(result.toString()));
return EXIT_FAILURE;
}