feat: improved error handling and feedback
This commit is contained in:
1 parent
7bcda3e6f8
commit
296464701d
7 files changed
+64
-24
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user