forked from mirror/serenity
Fix extend template
This commit is contained in:
parent
def4abd15b
commit
c2ada999ac
@ -45,7 +45,7 @@ func extendTemplate(ctx context.Context, rawTemplates []option.Template, root, c
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: merge extended template: ", current.Extend)
|
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: merge extended template: ", current.Extend)
|
||||||
}
|
}
|
||||||
newTemplate, err := json.UnmarshalExtended[option.Template](newRawTemplate)
|
newTemplate, err := json.UnmarshalExtendedContext[option.Template](ctx, newRawTemplate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: unmarshal extended template: ", current.Extend)
|
return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: unmarshal extended template: ", current.Extend)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user