From 53e5b3a54df2f1010ed4c5e36396678de10fb7af Mon Sep 17 00:00:00 2001 From: Code by Ben Date: Fri, 6 Dec 2024 10:14:15 +1100 Subject: [PATCH] invalid group names now does not generate errors, instead just returns 0 results. --- model/releaser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/releaser.go b/model/releaser.go index e62a8c59..0d1ca68e 100644 --- a/model/releaser.go +++ b/model/releaser.go @@ -84,7 +84,8 @@ func (r *Releasers) Where(ctx context.Context, exec boil.ContextExecutor, name s } s, err := namer.Humanize(namer.Path(name)) if err != nil { - return nil, fmt.Errorf("model releaser name humanize: %w", err) + // if the name is invalid, then return 0 results, but there is no need to return an error. + return nil, nil } n := strings.ToUpper(s) x := null.StringFrom(n)