From 2ba8156811dda143c9c7b91bd9f286888cc7efc0 Mon Sep 17 00:00:00 2001 From: David Sankel Date: Sat, 14 Jan 2023 02:10:23 +0000 Subject: [PATCH] Elaborate missing device error The missing device condition can also be caused by a lack of permissions to the specified device as described in #28. This revised error message hints that this may be the cause of the failure. Fixes #28. --- fatresize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatresize.c b/fatresize.c index 414f9e7..1001c8e 100644 --- a/fatresize.c +++ b/fatresize.c @@ -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");