Skip to content

Commit

Permalink
ImagePartitionAction: return specific error on failure
Browse files Browse the repository at this point in the history
go-losetup v2 now returns a meaningful error. Add it to the returned
error message.
  • Loading branch information
Jakob Unterwurzacher committed Dec 2, 2024
1 parent 0bc5983 commit db6b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/image_partition_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func (i *ImagePartitionAction) PreNoMachine(context *debos.DebosContext) error {
}

if err != nil {
return fmt.Errorf("Failed to setup loop device")
return fmt.Errorf("Failed to setup loop device: %v", err)
}
context.Image = i.loopDev.Path()
i.usingLoop = true
Expand Down

0 comments on commit db6b23c

Please sign in to comment.