mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
change code according to travis CI
This commit is contained in:
parent
9b5cb57d2a
commit
ccbe297bba
@ -293,7 +293,7 @@ func (ra *RepositoryAPI) getUsername() (string, error) {
|
||||
func (ra *RepositoryAPI) GetTopTenRepos() {
|
||||
repos, err := dao.GetTop10Repos()
|
||||
if err != nil {
|
||||
log.Errorf("error occured in get top 10 repos: v%", err)
|
||||
log.Errorf("error occured in get top 10 repos: %v", err)
|
||||
ra.CustomAbort(http.StatusInternalServerError, "internal server error")
|
||||
}
|
||||
ra.Data["json"] = repos
|
||||
|
Loading…
Reference in New Issue
Block a user