Skip to content

Commit fd60447

Browse files
committed
Better error messages
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent f89dd8e commit fd60447

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (ts *TaskService) Create(requestCtx context.Context, req *taskAPI.CreateTas
156156

157157
err = bundleDir.MountRootfs(drive.Path(), "ext4", nil)
158158
if err != nil {
159-
return nil, errors.Wrap(err, "failed to mount rootfs")
159+
return nil, errors.Wrapf(err, "failed to mount rootfs %q", drive.Path())
160160
}
161161

162162
req.Bundle = bundleDir.RootPath()

runtime/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func NewService(shimCtx context.Context, id string, remotePublisher shim.Publish
171171

172172
shimDir, err = vm.ShimDir(namespace, vmID)
173173
if err != nil {
174-
return nil, err
174+
return nil, errors.Wrap(err, "invalid shim directory")
175175
}
176176
}
177177

0 commit comments

Comments
 (0)