import: improve error message

As suggested: https://github.com/systemd/systemd/pull/20156#discussion_r810941489
This commit is contained in:
Lennart Poettering
2022-03-15 22:43:48 +00:00
committed by Luca Boccassi
parent 2979c852a4
commit 69811f4763
+1 -1
View File
@@ -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;