aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/qml/qqmlcompiler.cpp2
-rw-r--r--tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp
index 08ae37e747..a17080f559 100644
--- a/src/qml/qml/qqmlcompiler.cpp
+++ b/src/qml/qml/qqmlcompiler.cpp
@@ -3243,7 +3243,7 @@ bool QQmlCompiler::buildDynamicMetaAliases(QQmlScript::Object *obj)
continue;
if (!p->defaultValue)
- COMPILE_EXCEPTION(obj, tr("No property alias location"));
+ COMPILE_EXCEPTION(p, tr("No property alias location"));
if (!p->defaultValue->values.isOne() ||
p->defaultValue->values.first()->object ||
diff --git a/tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt b/tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt
index 9848e48579..00d17af98f 100644
--- a/tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt
+++ b/tests/auto/qml/qqmllanguage/data/invalidAlias.1.errors.txt
@@ -1 +1 @@
-3:1:No property alias location
+4:5:No property alias location