diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-05-18 13:23:03 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-18 21:54:42 +0300 |
commit | 58d4c25e50b9399bd81e43254ddae5949778e577 (patch) | |
tree | 880b9ab47c5299c5edf111b28235c6d4a36f7480 /tpl | |
parent | 38661c17bb8c31c9f31ee18f8eba5e3bfddd5574 (diff) |
tpl/collections: Use Feedback log instead of Error in IsSet
Using the Error log will cause Hugo to exit with an error, which could
break site build workflows.
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/collections.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index f2816e4f1..61459ee6b 100644 --- a/tpl/collections/collections.go +++ b/tpl/collections/collections.go @@ -371,7 +371,7 @@ func (ns *Namespace) IsSet(a interface{}, key interface{}) (bool, error) { return av.MapIndex(kv).IsValid(), nil } default: - ns.deps.Log.ERROR.Printf("calling IsSet with unsupported type %T will always return false", a) + ns.deps.Log.FEEDBACK.Printf("WARNING: calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), a) } return false, nil |