Skip to content

Commit 23bad8e

Browse files
Include underlying umount syscall error during unmount drive failures (#756)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
1 parent 051a16c commit 23bad8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/drive_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (dh driveHandler) UnmountDrive(ctx context.Context, req *drivemount.Unmount
225225
return &types.Empty{}, nil
226226
}
227227

228-
return nil, fmt.Errorf("failed to unmount the drive %q", drive.Path())
228+
return nil, fmt.Errorf("failed to unmount drive %q: %w", drive.Path(), err)
229229
}
230230

231231
func isSystemDir(path string) error {

0 commit comments

Comments
 (0)