diff --git a/linux/disk.go b/linux/disk.go index 215a665..6ae50ab 100644 --- a/linux/disk.go +++ b/linux/disk.go @@ -655,7 +655,7 @@ func addPartitionSet(d disko.Disk, pSet disko.PartitionSet) error { } } else { if err := addPartitionSetGPT(fp, d, pSet); err != nil { - return nil + return err } }