Skip to content

Commit

Permalink
replace repo => repository in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathsp06 committed Oct 8, 2020
1 parent 32af7f7 commit 907833a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func (c *Controller) CommitsGetBranchCommitLogHandler() commits.GetBranchCommitL
case errors.Is(err, catalog.ErrBranchNotFound):
return commits.NewGetBranchCommitLogNotFound().WithPayload(responseError("branch '%s' not found.", params.Branch))
case errors.Is(err, catalog.ErrRepositoryNotFound):
return commits.NewGetBranchCommitLogNotFound().WithPayload(responseError("repo '%s' not found.", params.Repository))
return commits.NewGetBranchCommitLogNotFound().WithPayload(responseError("repository '%s' not found.", params.Repository))
case err != nil:
return commits.NewGetBranchCommitLogDefault(http.StatusInternalServerError).WithPayload(responseErrorFrom(err))
}
Expand Down Expand Up @@ -653,7 +653,7 @@ func (c *Controller) GetBranchHandler() branches.GetBranchHandler {
case errors.Is(err, catalog.ErrBranchNotFound):
return branches.NewGetBranchNotFound().WithPayload(responseError("branch '%s' not found.", params.Branch))
case errors.Is(err, catalog.ErrRepositoryNotFound):
return branches.NewGetBranchNotFound().WithPayload(responseError("repo '%s' not found.", params.Repository))
return branches.NewGetBranchNotFound().WithPayload(responseError("repository '%s' not found.", params.Repository))
case err != nil:
return branches.NewGetBranchDefault(http.StatusInternalServerError).WithPayload(responseErrorFrom(err))
}
Expand Down Expand Up @@ -704,7 +704,7 @@ func (c *Controller) DeleteBranchHandler() branches.DeleteBranchHandler {
case errors.Is(err, catalog.ErrBranchNotFound):
return branches.NewDeleteBranchNotFound().WithPayload(responseError("branch '%s' not found.", params.Branch))
case errors.Is(err, catalog.ErrRepositoryNotFound):
return branches.NewDeleteBranchNotFound().WithPayload(responseError("repo '%s' not found.", params.Repository))
return branches.NewDeleteBranchNotFound().WithPayload(responseError("repository '%s' not found.", params.Repository))
case err != nil:
return branches.NewDeleteBranchDefault(http.StatusInternalServerError).WithPayload(responseErrorFrom(err))
}
Expand Down Expand Up @@ -1184,7 +1184,7 @@ func (c *Controller) ObjectsUploadObjectHandler() objects.UploadObjectHandler {

repo, err := cataloger.GetRepository(c.Context(), params.Repository)
if errors.Is(err, db.ErrNotFound) {
return objects.NewUploadObjectNotFound().WithPayload(responseError("repo not found"))
return objects.NewUploadObjectNotFound().WithPayload(responseError("repository not found"))
}
if err != nil {
return objects.NewUploadObjectDefault(http.StatusInternalServerError).WithPayload(responseErrorFrom(err))
Expand Down

0 comments on commit 907833a

Please sign in to comment.