Skip to content

Commit

Permalink
fix: remove extra error message
Browse files Browse the repository at this point in the history
  • Loading branch information
radulucut committed Aug 22, 2024
1 parent 45947c9 commit 8f239a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions cmd/cleed/follow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,14 @@ func Test_Follow_Invalid_URL(t *testing.T) {
t.Fatal(err)
}
assert.Len(t, files, 0)

assert.Equal(t, `Error: failed to parse URL: invalid
Usage:
cleed follow [feed] [flags]
Flags:
-h, --help help for follow
-L, --list string the list to add the feed to (default "default")
`, out.String())
}
2 changes: 1 addition & 1 deletion cmd/cleed/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func Execute() {
root, err := NewRoot(Version, time, printer, storage, feed)
if err != nil {
printer.ErrPrintf("Error: %v\n", err)
os.Exit(1)
}

err = root.Cmd.Execute()
if err != nil {
printer.ErrPrintf("Error: %v\n", err)
os.Exit(1)
}
}
Expand Down

0 comments on commit 8f239a2

Please sign in to comment.