From 671897ae918f4315dcaa36b3ff7431a14db5433b Mon Sep 17 00:00:00 2001 From: bejaratommy Date: Wed, 24 Jun 2026 10:18:38 +0000 Subject: [PATCH] tpl/collections: Include key in IsSet unsupported-type warning The warning logged when calling IsSet with an unsupported type did not identify which key triggered it, making it hard to locate the offending template. Include the key in the message. Fixes #11794 --- tpl/collections/collections.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index 04840f8c4..a44603b53 100644 --- a/tpl/collections/collections.go +++ b/tpl/collections/collections.go @@ -347,7 +347,7 @@ func (ns *Namespace) IsSet(c any, key any) (bool, error) { return av.MapIndex(kv).IsValid(), nil } default: - ns.deps.Log.Warnf("calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), c) + ns.deps.Log.Warnf("calling IsSet with unsupported type %q (%T) for key %v will always return false.\n", av.Kind(), c, key) } return false, nil