Better error message (#2673)
This commit is contained in:
parent
2d3cb1ca4c
commit
8c998fe0a2
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user