This commit is contained in:
Liang Ding
2022-06-14 23:29:06 +08:00
parent e7a45d4026
commit f49127edf5
5 changed files with 19 additions and 11 deletions

View File

@@ -70,6 +70,7 @@ func InitDatabase(forceRebuild bool) (err error) {
if gulu.File.IsExist(util.DBPath) {
if err = removeDatabaseFile(); nil != err {
util.LogErrorf("remove database file [%s] failed: %s", util.DBPath, err)
util.PushClearProgress()
return
}
}