fix(schema): Panic with error rather than function (#2391)

pull/2396/head
Johan Brandhorst-Satzkorn 4 years ago committed by GitHub
parent ac591d8283
commit d709b97e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ func RegisterEdition(name string, dialect Dialect, fs embed.FS, priority int, op
ee, err := edition.New(name, dialect, fs, priority, opt...)
if err != nil {
panic(err.Error)
panic(err.Error())
}
e = append(e, ee)
e.Sort()

Loading…
Cancel
Save