proto/client: print correct err (#826)

pull/828/head
Cluas 4 years ago committed by GitHub
parent d92c1edc26
commit 35d7b4113f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/kratos/internal/proto/client/client.go

@ -36,7 +36,7 @@ func run(cmd *cobra.Command, args []string) {
cmd := exec.Command("kratos", "upgrade")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if cmd.Run(); err != nil {
if err = cmd.Run(); err != nil {
fmt.Println(err)
return
}

Loading…
Cancel
Save