Skip to content

Commit

Permalink
Elaborate missing device error
Browse files Browse the repository at this point in the history
The missing device condition can also be caused by a lack of permissions
to the specified device as described in ya-mouse#28. This revised error message
hints that this may be the cause of the failure.

Fixes ya-mouse#28.
  • Loading branch information
camio committed Jan 14, 2023
1 parent ab78c48 commit 2ba8156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fatresize.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ int main(int argc, char **argv) {
printd(0, "%s (%s)\n", PACKAGE_STRING, BUILD_DATE);

if (!opts.device) {
fprintf(stderr, "You must specify exactly one existing device.\n");
fprintf(stderr, "You must specify exactly one existing device you have permissions to access.\n");
return 1;
} else if (!opts.size && !opts.info) {
fprintf(stderr, "You must specify new size.\n");
Expand Down

0 comments on commit 2ba8156

Please sign in to comment.