summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorkali <kali@win>2020-10-15 18:24:41 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-10-23 23:22:55 +0200
commit18d295d555528e2d5aa93b1a4c8b7c6cc3af8f18 (patch)
tree9d970ffdee7ee6d1699128d8681ce59c4c1f26ad /pkg
parent4ac0fd8ecfa1bf0aa394c38d5b7f4f60ca23842b (diff)
[bug] fix error condition for mkdir
Diffstat (limited to 'pkg')
-rw-r--r--pkg/config/logger.go2
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)
}
}