From: Lennart Poettering Date: Tue, 15 Mar 2022 17:35:48 +0000 (+0100) Subject: import: improve error message X-Git-Tag: v251-rc1~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69811f4763636274d3e07275a52497ed00d23827;p=thirdparty%2Fsystemd.git import: improve error message As suggested: https://github.com/systemd/systemd/pull/20156#discussion_r810941489 --- diff --git a/src/import/import.c b/src/import/import.c index 87ed8767e56..c76212494b2 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -91,7 +91,7 @@ static int open_source(const char *path, const char *local, int *ret_open_fd) { if (path) { open_fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY); if (open_fd < 0) - return log_error_errno(errno, "Failed to open raw image to import: %m"); + return log_error_errno(errno, "Failed to open source file '%s': %m", path); retval = open_fd;