Add a stub for errors coming from Android

These errors are related to VPN connection errors
This commit is contained in:
albexk 2023-12-22 15:35:24 +03:00
parent 375825125f
commit eafac491d8
4 changed files with 11 additions and 3 deletions

View file

@ -70,7 +70,10 @@ enum ErrorCode
CloakExecutableCrashed,
// import and install errors
ImportInvalidConfigError
ImportInvalidConfigError,
// Android errors
AndroidError
};
} // namespace amnezia

View file

@ -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");