diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php
index a96b466d567009a71db00a2487554df3941bcf48..b8059f6c856cfe173b2579d223afcbff93e21ea0 100644
--- a/www/saml2/idp/SSOService.php
+++ b/www/saml2/idp/SSOService.php
@@ -375,7 +375,7 @@ if($needAuth && !$isPassive) {
 			try {
 				$pc->processState($authProcState);
 			} catch (Exception $e) {
-				handleException($e);
+				handleError($e);
 			}
 
 			$requestcache['AuthProcState'] = $authProcState;