diff options
author | Unknwon <u@gogs.io> | 2015-11-21 19:30:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-21 19:30:11 -0500 |
commit | dcc740fd26d519e7c59ec3d56012a7b961d3e912 (patch) | |
tree | 32e440c6ad9733da83ab3b723d8edc0ffa1d3d4f /models | |
parent | 8966750fd456226773a201dbab41b87c4c32eda4 (diff) | |
download | gitea-dcc740fd26d519e7c59ec3d56012a7b961d3e912.tar.gz gitea-dcc740fd26d519e7c59ec3d56012a7b961d3e912.zip |
fix incorrect
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index b5324d82da..b628e7521b 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1317,7 +1317,7 @@ func DeleteRepositoryArchives() error { repo := bean.(*Repository) repoPath, err := repo.RepoPath() 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) } return nil @@ -1334,7 +1334,10 @@ func DeleteMissingRepositories() error { repo := bean.(*Repository) repoPath, err := repo.RepoPath() 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) { |