mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/load: safely marshaling schema
Summary: more descriptive output on marshaling failures. Reviewed By: alexsn Differential Revision: D16782294 fbshipit-source-id: 4ac3fbb3ef152d59bada257a9f0d8ccde5e95ae9
This commit is contained in:
committed by
Facebook Github Bot
parent
c0deedcf48
commit
74ce5b36f2
16
entc/load/testdata/failure/user.go
vendored
Normal file
16
entc/load/testdata/failure/user.go
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package failure
|
||||
|
||||
import (
|
||||
"fbc/ent"
|
||||
"fbc/ent/schema/edge"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (User) Edges() []ent.Edge {
|
||||
return []ent.Edge{
|
||||
edge.To("panic", User{}.Type),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user