Skip to content

Commit

Permalink
fix(hatchery): try to create the panic dumps directory (#3180)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin authored and yesnault committed Aug 10, 2018
1 parent fa98d83 commit 82618ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/hatchery/serve.go
Expand Up @@ -57,6 +57,8 @@ func init() {
}

path := filepath.Join(dir, panicDumpDir)
_ = os.MkdirAll(path, os.FileMode(0755))

files, err := ioutil.ReadDir(path)
if err != nil {
log.Warning("unable to list files in %s: %v", path, err)
Expand Down

0 comments on commit 82618ea

Please sign in to comment.