diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-03-15 18:35:48 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-03-15 22:43:48 +0000 |
commit | 69811f4763636274d3e07275a52497ed00d23827 (patch) | |
tree | 1aff107d38e877d5b0d731011f7301b0c717589a | |
parent | 2979c852a4e9fc5820a7c1d2bca5e23651b47289 (diff) | |
download | systemd-69811f4763636274d3e07275a52497ed00d23827.tar.gz |
import: improve error message
As suggested: https://github.com/systemd/systemd/pull/20156#discussion_r810941489
-rw-r--r-- | src/import/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import.c b/src/import/import.c index 87ed8767e5..c76212494b 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; |