Skip to content

Commit

Permalink
chore: better message text
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelbm authored May 21, 2024
1 parent 0203ce5 commit 43871b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/delete/edge_storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ func (b *bucket) runE(cmd *cobra.Command, _ []string) error {
return nil
}
}
logger.FInfo(b.factory.IOStreams.Out, "Delete all objects bucket\n")
logger.FInfo(b.factory.IOStreams.Out, "Delete all objects from bucket\n")
if err := deleteAllObjects(client, ctx, b.name, ""); err != nil {
return err
}
err := client.DeleteBucket(ctx, b.name)
if err != nil {
if msg.ERROR_NO_EMPTY_BUCKET == err.Error() {
logger.FInfo(b.factory.IOStreams.Out, fmt.Sprintf("schedules a delete for the bucket: %s", b.name))
logger.FInfo(b.factory.IOStreams.Out, "Bucket deletion was scheduled successfully")
return schedule.NewSchedule(b.name, schedule.DELETE_BUCKET)
} else {
return fmt.Errorf(msg.ERROR_DELETE_BUCKET, err.Error())
Expand Down

0 comments on commit 43871b1

Please sign in to comment.