diff options
author | Cameron Moore <moorereason@gmail.com> | 2016-12-22 22:44:35 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-12-23 19:48:50 +0100 |
commit | 8b0c3b9b271c7f3eaa812f7a98bb738fe9cc1846 (patch) | |
tree | 11008896434e44065b431886bbc12f67fb051b51 /commands | |
parent | 34c87421b82b967a8ae85261ca9a3e9fe7b156da (diff) |
helpers: Remove "no theme set" warning
Fixes #2821
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 153980cb1..32846f871 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -472,7 +472,9 @@ func getStaticSourceFs() afero.Fs { useStatic := true if err != nil { - jww.WARN.Println(err) + if err != helpers.ErrThemeUndefined { + jww.WARN.Println(err) + } useTheme = false } else { if _, err := source.Stat(themeDir); os.IsNotExist(err) { |