mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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.
This commit is contained in:
parent
38661c17bb
commit
58d4c25e50
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ func (ns *Namespace) IsSet(a interface{}, key interface{}) (bool, error) {
|
||||||
return av.MapIndex(kv).IsValid(), nil
|
return av.MapIndex(kv).IsValid(), nil
|
||||||
}
|
}
|
||||||
default:
|
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
|
return false, nil
|
||||||
|
|
Loading…
Reference in a new issue