Skip to content

Commit

Permalink
Include underlying umount syscall error during unmount drive failures (
Browse files Browse the repository at this point in the history
…#756)

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez authored Jul 10, 2023
1 parent 051a16c commit 23bad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/drive_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (dh driveHandler) UnmountDrive(ctx context.Context, req *drivemount.Unmount
return &types.Empty{}, nil
}

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

func isSystemDir(path string) error {
Expand Down

0 comments on commit 23bad8e

Please sign in to comment.