Merge pull request #979 from hmeng-19/fix_chdir_err

Fix the err info of chdir(cwd) failure
This commit is contained in:
Alexander Morozov 2016-08-08 09:57:53 -07:00 committed by GitHub
commit 946d3b7c9d
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func finalizeNamespace(config *initConfig) error {
}
if config.Cwd != "" {
if err := syscall.Chdir(config.Cwd); err != nil {
return err
return fmt.Errorf("chdir to cwd (%q) set in config.json failed: %v", config.Cwd, err)
}
}
return nil