Skip to content

Commit

Permalink
Update digitalocean/droplet/resource_droplet.go
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Lushnikova <[email protected]>
  • Loading branch information
TheMarvelFan and loosla authored Oct 1, 2024
1 parent a5af2a3 commit dc849f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion digitalocean/droplet/resource_droplet.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,8 @@ func resourceDigitalOceanDropletUpdate(ctx context.Context, d *schema.ResourceDa
for volumeID := range leftDiff(oldIDSet, newIDSet) {
err := detachVolumeIDOnDroplet(d, volumeID, meta)
if err != nil {
return nil
return diag.Errorf("Error detaching volume %q on droplet %s: %s", volumeID, d.Id(), err)

}
}
}
Expand Down

0 comments on commit dc849f9

Please sign in to comment.