From 8c998fe0a2a1b189b371da552ff1cd1e2939b721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Mon, 24 Jan 2022 19:42:12 +0100 Subject: [PATCH] Better error message (#2673) --- .../lib/Lemonldap/NG/Manager/Api/Providers/CasApp.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Api/Providers/CasApp.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Api/Providers/CasApp.pm index f79e807db..865d3e661 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Api/Providers/CasApp.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Api/Providers/CasApp.pm @@ -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 ); }