1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

proto/client: print correct err (#826)

This commit is contained in:
Cluas 2021-04-13 10:22:12 +08:00 committed by GitHub
parent d92c1edc26
commit 35d7b4113f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}