forked from security/hakurei
internal/outcome: handle group lookup message
This results in slightly less messy error reporting. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -55,7 +55,7 @@ func (k *outcome) finalise(ctx context.Context, msg message.Msg, id *hst.ID, con
|
||||
if errors.As(err, &unknownGroupError) {
|
||||
return newWithMessageError(fmt.Sprintf("unknown group %q", name), unknownGroupError)
|
||||
} else {
|
||||
return &hst.AppError{Step: "look up group by name", Err: err}
|
||||
return &hst.AppError{Step: "look up group by name", Err: err, Msg: err.Error()}
|
||||
}
|
||||
} else {
|
||||
supp[i] = gid
|
||||
|
||||
Reference in New Issue
Block a user