Open sunfuze opened 4 years ago
we can return our custom error which imply interface gqlerrors.ExtendedError instead of new a gqlerrors.Error.
gqlerrors.ExtendedError
gqlerrors.Error
And remove unnecessary gqlerrors.FormattedError embed.
gqlerrors.FormattedError
Coverage remained the same at 92.376% when pulling 01213eebef44f36b9561c85d541a78f845bc3a96 on sunfuze:error-extends-easier into 9441c498a148d34c007886e14295e13eb3efc340 on graphql-go:master.
we can return our custom error which imply interface
gqlerrors.ExtendedError
instead of new agqlerrors.Error
.And remove unnecessary
gqlerrors.FormattedError
embed.