|
|
@ -516,7 +516,12 @@ func printResponse(cmd *cobra.Command, args []string, rsp response) { |
|
|
|
} |
|
|
|
|
|
|
|
// Always print the status code.
|
|
|
|
fmt.Printf("-> code: %d\n", rsp.Code) |
|
|
|
if rsp.Code == types.CodeTypeOK { |
|
|
|
fmt.Printf("-> code: OK\n") |
|
|
|
} else { |
|
|
|
fmt.Printf("-> code: %d\n", rsp.Code) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if len(rsp.Data) != 0 { |
|
|
|
// Do no print this line when using the commit command
|
|
|
|