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

This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2022-08-24 20:42:21 -04:00
1 parent ac591d8283
commit d709b97e18
1 file changed
+1 -1
+1 -1
View File
@@ -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()