Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-01 06:16:09 +01:00

fix incorrect

This commit is contained in:
Unknwon 2015-11-21 19:30:11 -05:00
parent 8966750fd4
commit dcc740fd26

View file

@ -1317,7 +1317,7 @@ func DeleteRepositoryArchives() error {
repo := bean.(*Repository) repo := bean.(*Repository)
repoPath, err := repo.RepoPath() repoPath, err := repo.RepoPath()
if err != nil { if err != nil {
if err2 := CreateRepositoryNotice(fmt.Sprintf("DeleteRepositoryArchives[%d]: %v", repo.ID, err)); err2 != nil { if err2 := CreateRepositoryNotice(fmt.Sprintf("DeleteRepositoryArchives.RepoPath [%d]: %v", repo.ID, err)); err2 != nil {
log.Error(4, "CreateRepositoryNotice: %v", err2) log.Error(4, "CreateRepositoryNotice: %v", err2)
} }
return nil return nil
@ -1334,7 +1334,10 @@ func DeleteMissingRepositories() error {
repo := bean.(*Repository) repo := bean.(*Repository)
repoPath, err := repo.RepoPath() repoPath, err := repo.RepoPath()
if err != nil { if err != nil {
return fmt.Errorf("RepoPath [%d]: %v", repo.ID, err) if err2 := CreateRepositoryNotice(fmt.Sprintf("DeleteRepositoryArchives.RepoPath [%d]: %v", repo.ID, err)); err2 != nil {
log.Error(4, "CreateRepositoryNotice: %v", err2)
}
return nil
} }
if !com.IsDir(repoPath) { if !com.IsDir(repoPath) {