From d0d24b433762c4c0b1ddd8e25ed7f10877427170 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 19 Oct 2016 20:08:57 +0200 Subject: [PATCH] commands: Do not print error on missing unknown dirs See #2602 --- commands/hugo.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/hugo.go b/commands/hugo.go index fe05826f..3192baf4 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -599,6 +599,11 @@ func getDirList() []string { return nil } + if os.IsNotExist(err) { + // Ignore. + return nil + } + jww.ERROR.Println("Walker: ", err) return nil } -- 2.30.2