From 31c444e38346d201761a827c5f3c30eaf892a90a Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Tue, 22 Oct 2013 16:20:11 +0200 Subject: [PATCH] Make LocalStorage more verbose Change-Id: I4f3dd475156941f1a1d2815a4db57ad9abf8f27d Reviewed-by: Alan Alpert --- src/imports/localstorage/plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index 9a0528a..2b3ef34 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) -- 2.7.4