diff options
author | kali <kali@win> | 2020-10-15 18:24:41 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 23:22:55 +0200 |
commit | 18d295d555528e2d5aa93b1a4c8b7c6cc3af8f18 (patch) | |
tree | 9d970ffdee7ee6d1699128d8681ce59c4c1f26ad /pkg/config | |
parent | 4ac0fd8ecfa1bf0aa394c38d5b7f4f60ca23842b (diff) |
[bug] fix error condition for mkdir
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/logger.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/config/logger.go b/pkg/config/logger.go index a4a979a..d2d1bca 100644 --- a/pkg/config/logger.go +++ b/pkg/config/logger.go @@ -28,7 +28,7 @@ func ConfigureLogger(logPath string) (io.Closer, error) { if _, err := os.Stat(dir); err != nil { if os.IsNotExist(err) { err := os.MkdirAll(dir, 0700) - if err == nil { + if err != nil { log.Println("ERROR: cannot create data dir:", dir) } } |