Make LocalStorage more verbose
authorGatis Paeglis <gatis.paeglis@digia.com>
Tue, 22 Oct 2013 14:20:11 +0000 (16:20 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 22 Oct 2013 21:08:56 +0000 (23:08 +0200)
Change-Id: I4f3dd475156941f1a1d2815a4db57ad9abf8f27d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/imports/localstorage/plugin.cpp

index 9a0528a..2b3ef34 100644 (file)
@@ -186,7 +186,9 @@ static QString qmlsqldatabase_databasesPath(QV8Engine *engine)
 
 static void qmlsqldatabase_initDatabasesPath(QV8Engine *engine)
 {
-    QDir().mkpath(qmlsqldatabase_databasesPath(engine));
+    QString databasesPath = qmlsqldatabase_databasesPath(engine);
+    if (!QDir().mkpath(databasesPath))
+        qWarning() << "LocalStorage: can't create path - " << databasesPath;
 }
 
 static QString qmlsqldatabase_databaseFile(const QString& connectionName, QV8Engine *engine)