From 71c06f2ce7caab5186f43a06d05d62cc170d9c13 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 11 Feb 2022 10:55:27 -0500 Subject: [PATCH] LDAP normalization errors: note that the error came while normalizing the roles. --- src/lib/Hydra/Config.pm | 2 +- t/Hydra/Config/ldap_role_map.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Config.pm b/src/lib/Hydra/Config.pm index d96292fe..af686fca 100644 --- a/src/lib/Hydra/Config.pm +++ b/src/lib/Hydra/Config.pm @@ -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; diff --git a/t/Hydra/Config/ldap_role_map.t b/t/Hydra/Config/ldap_role_map.t index 6ee4c73b..1c54a67d 100644 --- a/t/Hydra/Config/ldap_role_map.t +++ b/t/Hydra/Config/ldap_role_map.t @@ -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." );