Stop tracking generated files
Run make generate in CI lint and test jobs since generated files are now gitignored. Also include Relay codegen for frontend apps in the generate target. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -170,14 +170,6 @@ func Invalidf(ctx context.Context, format string, a ...any) *gqlerror.Error {
|
||||
return Invalid(ctx, fmt.Errorf(format, a...))
|
||||
}
|
||||
|
||||
func InvalidValidationErrors(ctx context.Context, errs validator.ValidationErrors) gqlerror.List {
|
||||
gqlErrors := make(gqlerror.List, 0, len(errs))
|
||||
for _, ve := range errs {
|
||||
gqlErrors = append(gqlErrors, Invalid(ctx, ve))
|
||||
}
|
||||
return gqlErrors
|
||||
}
|
||||
|
||||
func Internal(ctx context.Context) *gqlerror.Error {
|
||||
return &gqlerror.Error{
|
||||
Message: "An internal server error occurred. Please try again later.",
|
||||
|
||||
Reference in New Issue
Block a user