LDAP normalization errors: note that the error came while normalizing the roles.

This commit is contained in:
Graham Christensen 2022-02-11 10:55:27 -05:00
parent d6dea39912
commit 71c06f2ce7
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ sub normalize_ldap_role_mappings {
}
if (@errors) {
die join "\n", @errors;
die "Failed to normalize LDAP role mappings:\n" . (join "\n", @errors);
}
return $mapping;

View file

@ -223,7 +223,7 @@ subtest "normalize_ldap_role_mappings" => sub {
"group" => "invalid-role",
}),
},
qr/Invalid roles.*invalid-role/,
qr/Failed to normalize.*Invalid roles.*invalid-role/,
"Invalid roles fail to normalize."
);