From 82618ea27702cee2f5c966fb42186e6889cc61af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Samin?= Date: Fri, 10 Aug 2018 13:58:21 +0000 Subject: [PATCH] fix(hatchery): try to create the panic dumps directory (#3180) --- engine/hatchery/serve.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/hatchery/serve.go b/engine/hatchery/serve.go index 5480e7ad4e..c7271ecdc8 100644 --- a/engine/hatchery/serve.go +++ b/engine/hatchery/serve.go @@ -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)