Commit 3d9d10ce authored by Russ Allbery's avatar Russ Allbery
Browse files

Better error reporting on verifier failure during add

When adding a new ACL, if creation of the verifier failed, we
reported a pretty minimal error message claiming that the
identifier was the problem.  It can't possibly be the problem
when the constructor fails.  Report the actual failure more
parent bd0f18af
......@@ -333,6 +333,10 @@ sub add {
my $object = eval {
$class->new ($identifier, $self->{schema});
if ($@) {
$self->error ("cannot create ACL verifier: $@");
unless ($object && $object->syntax_check ($identifier)) {
$self->error ("invalid ACL identifier $identifier for $scheme");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment