sqlitedbservice: provide error message with more context
This commit is contained in:
父節點
7c1e12d589
當前提交
8d6678009a
@ -12,7 +12,7 @@ bool SqliteDbService::fileExistsInDatabase(QString path, qint64 mtime)
|
|||||||
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())
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@ bool SqliteDbService::fileExistsInDatabase(QString 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())
|
||||||
{
|
{
|
||||||
|
載入中…
x
新增問題並參考
Block a user