From: Lennart Poettering Date: Tue, 4 Aug 2020 13:54:25 +0000 (+0200) Subject: repart: make error code when operating on non-existing file a bit more useful X-Git-Tag: v247-rc1~369^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa2a74ad9dbcecb1e5929d293c16445db0af5551;p=thirdparty%2Fsystemd.git repart: make error code when operating on non-existing file a bit more useful --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 4768600a8dc..fc207585b04 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -3202,7 +3202,7 @@ static int find_root(char **ret, int *ret_fd) { r = acquire_root_devno(arg_node, O_RDONLY|O_CLOEXEC, ret, ret_fd); if (r < 0) - return log_error_errno(r, "Failed to determine backing device of %s: %m", arg_node); + return log_error_errno(r, "Failed to open file or determine backing device of %s: %m", arg_node); return 0; }