Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #179 from secrethub/feature/repo-path-in-not-found…
Browse files Browse the repository at this point in the history
…-error

Update ErrRepoNotFound to include repo path
  • Loading branch information
SimonBarendse authored Mar 23, 2020
2 parents 340f69a + 92df224 commit a558dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/api/server_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
ErrSignatureNotVerified = errHub.Code("invalid_signature").StatusError("request was not signed by a valid credential", http.StatusUnauthorized)

// Repos
ErrRepoNotFound = errHub.Code("repo_not_found").StatusError("Repo not found", http.StatusNotFound)
ErrRepoNotFound = errHub.Code("repo_not_found").StatusErrorPref("Repo '%s' not found", http.StatusNotFound)
ErrRepoAlreadyExists = errHub.Code("repo_already_exists").StatusError("Repo already exists, please create a different repo", http.StatusConflict)

// Dirs
Expand Down

0 comments on commit a558dcf

Please sign in to comment.