diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-10-22 16:20:11 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-22 23:08:56 +0200 |
commit | 31c444e38346d201761a827c5f3c30eaf892a90a (patch) | |
tree | b596cefe29282b6481c1350c5c797a06fce0d7b5 /src/imports | |
parent | 4f1ed0948b99af617fa978f0f1b72e48a9fe774f (diff) |
Make LocalStorage more verbose
Change-Id: I4f3dd475156941f1a1d2815a4db57ad9abf8f27d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/localstorage/plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index 9a0528a28f..2b3ef34d4c 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -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) |