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

Commit c657786

Browse files
committed
Name the demo repo in already exists error
1 parent 02e67ae commit c657786

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internals/demo/init.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"crypto/hmac"
55
"crypto/sha256"
66
"encoding/base64"
7-
"errors"
87
"fmt"
98

109
"github.com/secrethub/secrethub-cli/internals/cli/ui"
@@ -66,7 +65,7 @@ func (cmd *InitCommand) Run() error {
6665

6766
_, err = client.Repos().Create(repoPath)
6867
if err == api.ErrRepoAlreadyExists && cmd.repo == "" {
69-
return errors.New("demo repo already exists, use --repo to specify another repo to use")
68+
return fmt.Errorf("demo repo %s already exists, use --repo to specify another repo to use", repoPath)
7069
} else if err != nil {
7170
return err
7271
}

0 commit comments

Comments
 (0)