mirror of
https://github.com/outbackdingo/debos.git
synced 2026-01-27 10:18:47 +00:00
ImagePartitionAction: return specific error on failure
go-losetup v2 now returns a meaningful error. Add it to the returned error message.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user