Skip to content

Commit

Permalink
logging before sending the API request
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Jan 26, 2024
1 parent 9830c85 commit 7920960
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/imagerunner/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ func StopCommand() *cobra.Command {
},
RunE: func(cmd *cobra.Command, args []string) error {
ID := args[0]
fmt.Printf("Stopping container %s...\n", ID)
if err := imagerunnerClient.StopRun(context.Background(), ID); err != nil {
return fmt.Errorf("failed to stop the container: %v", err)
}

fmt.Printf("Stopping container %s...\n", ID)
return nil
},
}
Expand Down

0 comments on commit 7920960

Please sign in to comment.