mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Add a stub for errors coming from Android
These errors are related to VPN connection errors
This commit is contained in:
+4
-1
@@ -70,7 +70,10 @@ enum ErrorCode
|
||||
CloakExecutableCrashed,
|
||||
|
||||
// import and install errors
|
||||
ImportInvalidConfigError
|
||||
ImportInvalidConfigError,
|
||||
|
||||
// Android errors
|
||||
AndroidError
|
||||
};
|
||||
|
||||
} // namespace amnezia
|
||||
|
||||
@@ -59,6 +59,9 @@ QString errorString(ErrorCode code){
|
||||
|
||||
case (ImportInvalidConfigError): return QObject::tr("The config does not contain any containers and credentials for connecting to the server");
|
||||
|
||||
// Android errors
|
||||
case (AndroidError): return QObject::tr("VPN connection error");
|
||||
|
||||
case(InternalError):
|
||||
default:
|
||||
return QObject::tr("Internal error");
|
||||
|
||||
Reference in New Issue
Block a user