forked from mirror/serenity
Fix merge template
This commit is contained in:
parent
76e13570a2
commit
93b18d7037
@ -40,7 +40,7 @@ func extendTemplate(rawTemplates []option.Template, root, current option.Templat
|
|||||||
}
|
}
|
||||||
next = newNext
|
next = newNext
|
||||||
}
|
}
|
||||||
newTemplate, err := badjson.Merge(current, next)
|
newTemplate, err := badjson.Merge(next, current)
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user