From 69811f4763636274d3e07275a52497ed00d23827 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 Mar 2022 18:35:48 +0100 Subject: [PATCH] import: improve error message As suggested: https://github.com/systemd/systemd/pull/20156#discussion_r810941489 --- src/import/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;