mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-31 11:52:16 +00:00
Changed some error texts
This commit is contained in:
parent
69612cc3e5
commit
300738ca14
3 changed files with 8 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
|||
"invalidUsernamePassword": "Invalid username or password",
|
||||
"tooManyAttempts": "Too many attempts. Try again later.",
|
||||
"cantReachServer": "Can't reach server. Check connection data.",
|
||||
"sslError": "SSL error. Go to Settings > Advanced settings and enable Override SSL validation.",
|
||||
"sslError": "Handshake exception. Cannot establish a secure connection with the server. This can be a SSL error. Go to Settings > Advanced settings and enable Override SSL validation.",
|
||||
"unknownError": "Unknown error",
|
||||
"connectionNotCreated": "Connection couldn't be created",
|
||||
"connecting": "Connecting...",
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"invalidUsernamePassword": "Usuario o contraseña no válidos.",
|
||||
"tooManyAttempts": "Demasiados intentos. Prueba de nuevo más tarde.",
|
||||
"cantReachServer": "No se puede alcanzar el servidor. Comprueba los datos de conexión.",
|
||||
"sslError": "Error de SSL. Ve a Ajustes > Ajustes avanzados y activa No comprobar SSL.",
|
||||
"sslError": "Handshake exception. No se ha podido establecer una conexión segura con el servidor. Es posible que sea un error de SSL. Ve a Ajustes > Ajustes avanzados y activa No comprobar SSL.",
|
||||
"unknownError": "Error desconocido",
|
||||
"connectionNotCreated": "No se pudo crear la conexión",
|
||||
"connecting": "Conectando...",
|
||||
|
|
|
@ -2,6 +2,8 @@ import 'dart:async';
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
import 'package:adguard_home_manager/classes/http_client.dart';
|
||||
import 'package:adguard_home_manager/models/server.dart';
|
||||
|
||||
|
@ -52,7 +54,8 @@ class ServerAuth {
|
|||
return AuthStatus.timeoutException;
|
||||
} on HandshakeException {
|
||||
return AuthStatus.handshakeException;
|
||||
} catch (e) {
|
||||
} catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return AuthStatus.unknown;
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +78,8 @@ class ServerAuth {
|
|||
return AuthStatus.timeoutException;
|
||||
} on HandshakeException {
|
||||
return AuthStatus.handshakeException;
|
||||
} catch (e) {
|
||||
} catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return AuthStatus.unknown;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue