Use error.New () directly to output the error message
Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
This commit is contained in:
parent
696e88c813
commit
af86cd4d2f
8 changed files with 13 additions and 12 deletions
|
@ -22,7 +22,7 @@ var listCommand = cli.Command{
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Printf("ID\tSTATUS\tPROCS\tBUNDLE\n")
|
||||
fmt.Println("ID\tSTATUS\tPROCS\tBUNDLE")
|
||||
for _, c := range listResponse.Containers {
|
||||
listProcResponse, err := executionService.ListProcesses(gocontext.Background(),
|
||||
&execution.ListProcessesRequest{ContainerID: c.ID})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue