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." );