1
0

Fix database error

This commit is contained in:
Scott E. Graves
2017-04-17 23:57:12 -05:00
parent 6993be660a
commit 0a04147eb2

View File

@@ -674,7 +674,7 @@ public:
virtual SString GetSingleLineMessage() const override
{
return GetEventName() +
"|MSG|" + SString(_exception.getErrorStr()) +
"|MSG|" + SString(_exception.what()) +
"|OPR|" + _duringOperation;
}
@@ -855,7 +855,7 @@ void CUploadManager::HandleFileRemove(const CSiaCurl& siaCurl, const SString& si
SQLite::Statement del(_uploadDatabase, DELETE_UPLOAD);
del.bind("@sia_path", SString::ToUtf8(siaPath).c_str());
auto delCount = del.exec();
if (del.exec() >= 0)
if (delCount >= 0)
{
if (delCount != 0)
{