sqlitedbservice: provide error message with more context
Tento commit je obsažen v:
@ -11,7 +11,7 @@ bool SqliteDbService::fileExistsInDatabase(QString path, qint64 mtime)
|
|||||||
query.addBindValue(path);
|
query.addBindValue(path);
|
||||||
query.addBindValue(mtime);
|
query.addBindValue(mtime);
|
||||||
if(!query.exec())
|
if(!query.exec())
|
||||||
{ throw QSSGeneralException("Error while trying to query for file existance");
|
{ throw QSSGeneralException("Error while trying to query for file existance: " + query.lastError().text());
|
||||||
}
|
}
|
||||||
if(!query.next())
|
if(!query.next())
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ bool SqliteDbService::fileExistsInDatabase(QString path)
|
|||||||
query.prepare("SELECT 1 FROM file WHERE path = ?");
|
query.prepare("SELECT 1 FROM file WHERE path = ?");
|
||||||
query.addBindValue(path);
|
query.addBindValue(path);
|
||||||
if(!query.exec())
|
if(!query.exec())
|
||||||
{ throw QSSGeneralException("Error while trying to query for file existance");
|
{ throw QSSGeneralException("Error while trying to query for file existance: " + query.lastError().text());
|
||||||
}
|
}
|
||||||
if(!query.next())
|
if(!query.next())
|
||||||
{
|
{
|
||||||
|
Odkázat v novém úkolu
Zablokovat Uživatele