Only warn on errors in deleting LFS orphaned files during repo deletion (#7213)
This commit is contained in:
parent
0323122fd7
commit
cde410521c
2 changed files with 2 additions and 5 deletions
|
@ -63,7 +63,7 @@ func RemoveAllWithNotice(title, path string) {
|
|||
func removeAllWithNotice(e Engine, title, path string) {
|
||||
if err := os.RemoveAll(path); err != nil {
|
||||
desc := fmt.Sprintf("%s [%s]: %v", title, path, err)
|
||||
log.Warn(desc)
|
||||
log.Warn(title+" [%s]: %v", path, err)
|
||||
if err = createNotice(e, NoticeRepository, desc); err != nil {
|
||||
log.Error("CreateRepositoryNotice: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue