Better error message (#2673)

This commit is contained in:
Clément OUDOT 2022-01-24 19:42:12 +01:00
parent 2d3cb1ca4c
commit 8c998fe0a2

View File

@ -128,10 +128,9 @@ sub addCasApp {
for my $serviceUrl ( @{ $add->{options}->{service} } ) {
my $res = $self->_getCasAppByServiceUrl( $conf, $serviceUrl );
if ( defined $res ) {
my $conflict = $res->{options}->{service};
return $self->sendError(
$req,
"Invalid input: A CAS application with service URL $conflict already exists",
"Invalid input: A CAS application with service URL $serviceUrl already exists",
409
);
}