diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-12-03 22:22:40 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-12-03 22:22:40 (GMT) |
commit | f80d844e1dacc24d16172f3e5ac9e4341fa9b5c0 (patch) | |
tree | 983ff290d64c8e349e590d7b20f7531d72c322c9 /src/declarative/qml | |
parent | 5e7a6806f32b9ff922325a9cad9b2b2405747b0b (diff) | |
download | Qt-f80d844e1dacc24d16172f3e5ac9e4341fa9b5c0.zip Qt-f80d844e1dacc24d16172f3e5ac9e4341fa9b5c0.tar.gz Qt-f80d844e1dacc24d16172f3e5ac9e4341fa9b5c0.tar.bz2 |
More detailed error message.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qmlsqldatabase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlsqldatabase.cpp b/src/declarative/qml/qmlsqldatabase.cpp index 8c4c7bf..46c9cf6 100644 --- a/src/declarative/qml/qmlsqldatabase.cpp +++ b/src/declarative/qml/qmlsqldatabase.cpp @@ -260,8 +260,9 @@ static QScriptValue qmlsqldatabase_change_version(QScriptContext *context, QScri instance.setProperty(QLatin1String("executeSql"), engine->newFunction(qmlsqldatabase_executeSql,1)); QScriptValue tx = engine->newVariant(instance,qVariantFromValue(db)); - if (from_version!=context->thisObject().property(QLatin1String("version")).toString()) { - THROW_SQL(2,QmlEngine::tr("Version mismatch")); + QString foundvers = context->thisObject().property(QLatin1String("version")).toString(); + if (from_version!=foundvers) { + THROW_SQL(2,QmlEngine::tr("Version mismatch: expected %1, found %2").arg(from_version).arg(foundvers)); return engine->undefinedValue(); } |