Skip to content

Misleading error message when permissions to device are lacking #28

Description

@camio

When executing fatresize as a user that lacks permissions to the specified device, it fails with the following message:

You must specify exactly one existing device.

Since the user specified a device, this message is misleading. I ran into this issue and I suspect the two users participating in this reddit thread did as well.

The root cause seems to be the ped_device_get call in the probe_device function which errors out due to lack of permissions, but the error message is swallowed instead of reported back to the user.

I'll create a PR shortly that doesn't address the root cause, but at least provides an error message that hints to the user that their lack of permissions may be the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions