Skip to content

Commit 35a876d

Browse files
committed
fix/removed double formatting of errros
Signed-off-by: Rayyan Khan <rayyanrehman101@gmail.com>
1 parent c868809 commit 35a876d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/harbor/root/project/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ func ListProjectCommand() *cobra.Command {
102102
RunE: func(cmd *cobra.Command, args []string) error {
103103
listFunc, err := BuildListOptions(private, public, &opts, fuzzy, match, ranges)
104104
if err != nil {
105-
return fmt.Errorf("failed to build the options: %v", err)
105+
return err
106106
}
107107
log.Debug("Fetching projects...")
108108
allProjects, err = fetchProjects(listFunc, opts)
109109
if err != nil {
110-
return fmt.Errorf("failed to get projects list: %v", utils.ParseHarborErrorMsg(err))
110+
return fmt.Errorf("%s", utils.ParseHarborErrorMsg(err))
111111
}
112112
if err := PrintProjects(allProjects); err != nil {
113113
return err

0 commit comments

Comments
 (0)