mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 03:34:58 +00:00
Propagate error instead of log.Fatalf()
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
parent
66cd2b6ee5
commit
65f3d9bcc1
@ -65,7 +65,7 @@ func extend(d, fsType string) error {
|
|||||||
|
|
||||||
data, err := exec.Command("sfdisk", "-J", d).Output()
|
data, err := exec.Command("sfdisk", "-J", d).Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Unable to get drive data for %s from sfdisk: %v", d, err)
|
return fmt.Errorf("Unable to get drive data for %s from sfdisk: %v", d, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
f := Fdisk{}
|
f := Fdisk{}
|
||||||
|
Loading…
Reference in New Issue
Block a user