You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tpl/collections: Include template path in IsSet unsupported type warning
When isset is called on a value that's not an array, channel, slice, or
map, Hugo logs a warning that says only "calling IsSet with unsupported
type X (Y) will always return false." On any site with more than one
template, there's no way to find the offending call site.
Thread context through IsSet and surface the executing template's
filename in the warning. Switch from Log.Warnf to Log.Warnidf so the
warning is grouped under an ID that users can suppress via ignoreLogs.
Fixes#11794
ns.deps.Log.Warnidf(constants.WarnIsSetUnsupportedType, "calling IsSet with unsupported type %q (%T)%s will always return false.", av.Kind(), c, where)
0 commit comments