diff --git a/services/context/group.go b/services/context/group.go index 7cf31a9e2e..80117e2ca9 100644 --- a/services/context/group.go +++ b/services/context/group.go @@ -111,6 +111,10 @@ func groupAssignment(ctx commonCtx, doer *user_model.User, isSigned bool, handle if repoGroup.Group == nil { err = getGroupByParams(ctx, repoGroup, handleNotFound, handleOtherError) } + if err != nil { + handleOtherError("GetGroupByParams", err) + return + } if ctx.Written() { return }