mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 06:14:04 +08:00
fix(index): nil pointer call
This commit is contained in:
parent
5b7aa9c1cf
commit
dda1da4576
@ -75,8 +75,8 @@ func BuildIndex(ctx context.Context, indexPaths, ignorePaths []string, maxDepth
|
||||
objCount = objCount + uint64(len(messages))
|
||||
}
|
||||
if originErr != nil {
|
||||
log.Errorf("build index error: %+v", err)
|
||||
eMsg = err.Error()
|
||||
log.Errorf("build index error: %+v", originErr)
|
||||
eMsg = originErr.Error()
|
||||
} else {
|
||||
log.Infof("success build index, count: %d", objCount)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user