graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.87k stars 839 forks source link

More easier to extend error #550

Open sunfuze opened 4 years ago

sunfuze commented 4 years ago

we can return our custom error which imply interface gqlerrors.ExtendedError instead of new a gqlerrors.Error.

And remove unnecessary gqlerrors.FormattedError embed.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 92.376% when pulling 01213eebef44f36b9561c85d541a78f845bc3a96 on sunfuze:error-extends-easier into 9441c498a148d34c007886e14295e13eb3efc340 on graphql-go:master.