Fix database error
This commit is contained in:
@@ -674,7 +674,7 @@ public:
|
|||||||
virtual SString GetSingleLineMessage() const override
|
virtual SString GetSingleLineMessage() const override
|
||||||
{
|
{
|
||||||
return GetEventName() +
|
return GetEventName() +
|
||||||
"|MSG|" + SString(_exception.getErrorStr()) +
|
"|MSG|" + SString(_exception.what()) +
|
||||||
"|OPR|" + _duringOperation;
|
"|OPR|" + _duringOperation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -855,7 +855,7 @@ void CUploadManager::HandleFileRemove(const CSiaCurl& siaCurl, const SString& si
|
|||||||
SQLite::Statement del(_uploadDatabase, DELETE_UPLOAD);
|
SQLite::Statement del(_uploadDatabase, DELETE_UPLOAD);
|
||||||
del.bind("@sia_path", SString::ToUtf8(siaPath).c_str());
|
del.bind("@sia_path", SString::ToUtf8(siaPath).c_str());
|
||||||
auto delCount = del.exec();
|
auto delCount = del.exec();
|
||||||
if (del.exec() >= 0)
|
if (delCount >= 0)
|
||||||
{
|
{
|
||||||
if (delCount != 0)
|
if (delCount != 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user