fix(schema): Panic with error rather than function (#2391)
This commit is contained in:
1 parent
ac591d8283
commit
d709b97e18
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user