From 3e1f56c1c0ec2c253f66bcdb7d042f6d3bb0564a Mon Sep 17 00:00:00 2001 From: James Rasell Date: Fri, 14 Mar 2025 15:59:41 +0100 Subject: [PATCH] cli: Add volume type to delete error messages when API call fails. (#25392) --- command/volume_delete.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/volume_delete.go b/command/volume_delete.go index 427fd9c59..6098d4329 100644 --- a/command/volume_delete.go +++ b/command/volume_delete.go @@ -146,7 +146,7 @@ func (c *VolumeDeleteCommand) deleteCSIVolume(client *api.Client, volID string, Namespace: c.namespace, }) if err != nil { - c.Ui.Error(fmt.Sprintf("Could not find existing volume to delete: %s", err)) + c.Ui.Error(fmt.Sprintf(`Could not find existing CSI volume to delete: %s`, err)) return 1 } if len(possible) > 0 { @@ -179,7 +179,7 @@ func (c *VolumeDeleteCommand) deleteHostVolume(client *api.Client, volID string) if !helper.IsUUID(volID) { stub, possible, err := getHostVolumeByPrefix(client, volID, c.namespace) if err != nil { - c.Ui.Error(fmt.Sprintf("Could not find existing volume to delete: %s", err)) + c.Ui.Error(fmt.Sprintf(`Could not find existing host volume to delete: %s`, err)) return 1 } if len(possible) > 0 {