chiark / gitweb /
nspawn: improve error message when we cannot resolve the root directory argument
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Nov 2013 02:50:32 +0000 (03:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Nov 2013 02:50:32 +0000 (03:50 +0100)
src/nspawn/nspawn.c

index 81d1748..cd757c4 100644 (file)
@@ -192,7 +192,7 @@ static int parse_argv(int argc, char *argv[]) {
                         free(arg_directory);
                         arg_directory = canonicalize_file_name(optarg);
                         if (!arg_directory) {
-                                log_error("Failed to canonicalize root directory.");
+                                log_error("Invalid root directory: %m");
                                 return -ENOMEM;
                         }