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

Commit

Permalink
Don't return repo not found error from dirService.Exists
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBarendse committed Nov 25, 2019
1 parent c632359 commit 332f4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/secrethub/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (s dirService) Create(path string) (*api.Dir, error) {
// Exists returns whether a directory where you have access to exists at a given path.
func (s dirService) Exists(path string) (bool, error) {
_, err := s.GetTree(path, 0, false)
if err == api.ErrDirNotFound {
if err == api.ErrDirNotFound || err == api.ErrRepoNotFound {
return false, nil
} else if err != nil {
return false, err
Expand Down

0 comments on commit 332f4d7

Please sign in to comment.