feat: improved error handling and feedback

This commit is contained in:
Björn Fromme committed 2025-03-24 19:41:51 +01:00
1 parent 7bcda3e6f8
commit 296464701d
7 files changed
+64 -24

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ namespace App\BusProNet\Security;
use App\BusProNet\ApiClient;
use App\BusProNet\Exception\ApiClientException;
use App\BusProNet\Exception\ResponseParserException;
use App\BusProNet\Model\CrmAttributes;
use App\BusProNet\Model\PersonalData;
use Psr\Log\LoggerInterface;
@@ -45,7 +46,7 @@ class Authenticator extends AbstractLoginFormAuthenticator implements Authentica
try {
$response = $this->apiClient->getPersonalData($email, $password);
} catch (ApiClientException $e) {
} catch (ApiClientException|ResponseParserException $e) {
throw new CustomUserMessageAuthenticationException($e->getMessage());
}