From: Dwight Engen Date: Tue, 15 Oct 2013 17:50:58 +0000 (-0400) Subject: add more detail in automount error message X-Git-Tag: lxc-1.0.0.alpha2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c414be2526c8f9aae28f485ff542c85e335d50ad;p=thirdparty%2Flxc.git add more detail in automount error message Signed-off-by: Dwight Engen Signed-off-by: Serge Hallyn --- 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; }