Merge pull request #978 from hmeng-19/fix_mount_error

Fix the err info of mount failure
This commit is contained in:
Alexander Morozov 2016-08-08 09:51:57 -07:00 committed by GitHub
commit 6c7e43594e
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func setupRootfs(config *configs.Config, console *linuxConsole, pipe io.ReadWrit
} }
} }
if err := mountToRootfs(m, config.Rootfs, config.MountLabel); err != nil { if err := mountToRootfs(m, config.Rootfs, config.MountLabel); err != nil {
return newSystemErrorWithCausef(err, "mounting %q to rootfs %q", m.Destination, config.Rootfs) return newSystemErrorWithCausef(err, "mounting %q to rootfs %q at %q", m.Source, config.Rootfs, m.Destination)
} }
for _, postcmd := range m.PostmountCmds { for _, postcmd := range m.PostmountCmds {