From: Cameron Moore Date: Thu, 18 May 2017 18:23:03 +0000 (-0500) Subject: tpl/collections: Use Feedback log instead of Error in IsSet X-Git-Tag: v0.21~15 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=58d4c25e50b9399bd81e43254ddae5949778e577;p=brevno-suite%2Fhugo 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. --- diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index f2816e4f..61459ee6 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