avoid use of groups_arr
This commit is contained in:
parent
97dde99d5e
commit
86d5c026be
@ -127,9 +127,10 @@ pub fn init(
|
|||||||
members[members.len - 1] = user_idx;
|
members[members.len - 1] = user_idx;
|
||||||
try user2groups[user_idx].append(allocator, @intCast(u32, i));
|
try user2groups[user_idx].append(allocator, @intCast(u32, i));
|
||||||
} else {
|
} else {
|
||||||
|
const name = groups.get(i).name;
|
||||||
return err.returnf(
|
return err.returnf(
|
||||||
"user '{s}' not found, member of group '{s}'",
|
"user '{s}' not found, member of group '{s}'",
|
||||||
.{ member_name, groups_arr[i].name },
|
.{ member_name, name },
|
||||||
error.NotFound,
|
error.NotFound,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user