Skip to content

Commit bed4103

Browse files
committed
chore: improve ssh missing args error message
1 parent 594e4b5 commit bed4103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (r *RootCmd) ssh() *serpent.Command {
9898
return func(i *serpent.Invocation) error {
9999
got := len(i.Args)
100100
if got < 1 {
101-
return xerrors.Errorf("expected at least 1 arg but got %v %v", got, i.Args)
101+
return xerrors.New("expected the name of a workspace")
102102
}
103103

104104
return next(i)

0 commit comments

Comments
 (0)