From c414be2526c8f9aae28f485ff542c85e335d50ad Mon Sep 17 00:00:00 2001 From: Dwight Engen Date: Tue, 15 Oct 2013 13:50:58 -0400 Subject: [PATCH] add more detail in automount error message Signed-off-by: Dwight Engen Signed-off-by: Serge Hallyn --- src/lxc/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index ecbcf41a7..457fa2635 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -800,10 +800,11 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, int flags, struct cgroup } r = mount(source, destination, default_mounts[i].fstype, default_mounts[i].flags, default_mounts[i].options); saved_errno = errno; + if (r < 0) + SYSERROR("error mounting %s on %s", source, destination); free(source); free(destination); if (r < 0) { - SYSERROR("error mounting %s", default_mounts[i].destination); errno = saved_errno; return -1; } -- 2.47.2