From 224cb5e217f4e6c69cde1bb3fd26fecd6ced5f9a Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 20 Nov 2021 16:05:58 +0100 Subject: Fix cache directory err check+dockerfile --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index a76690e..5895b12 100644 --- a/main.go +++ b/main.go @@ -22,14 +22,17 @@ func main() { log.Println(config) // Some init - os.MkdirAll(config.S3Cache, 0755) + err := os.MkdirAll(config.S3Cache, 0755) + if err != nil { + log.Fatalf("init failed: mkdir s3 cache failed: ", err) + } // Launch our submodules done := make(chan error) go httpServer(config, done) go sshServer(config, done) - err := <-done + err = <-done if err != nil { log.Fatalf("A component failed: %v", err) } -- cgit v1.2.3