This commit is contained in:
Liang Ding 2022-06-14 23:29:06 +08:00
parent e7a45d4026
commit f49127edf5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
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
}
}