Skip to content

Commit

Permalink
After emitting error we need to exit, not run. (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jchacon authored Jun 22, 2022
1 parent 1cf5f81 commit 21f6ceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/sansshell/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (g *proxyVersionCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...
state := args[0].(*util.ExecuteState)
if len(state.Out) > 1 {
fmt.Fprintln(os.Stderr, "can't call proxy version with multiple targets")
return subcommands.ExitFailure
}
// Get a real connection to the proxy
c := pb.NewStateClient(state.Conn.Proxy())
Expand Down

0 comments on commit 21f6ceb

Please sign in to comment.