fix error message too
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-24 12:05:29 +10:00
parent 2e8335c97d
commit 174774795b

View File

@@ -247,7 +247,7 @@ func main() {
groups, err := GetGroupsOfUser(*username, *baseDN, ldaps)
if err != nil {
output.AuthSuccess = false
output.Results = err.Error()
output.Results = fmt.Sprintf("Group search Error: %s", err)
} else {
output.Groups = strings.Join(groups[:], ",")
}