Display error when OpenConnect was not found (#81)

This commit is contained in:
Kevin Yue
2021-08-21 19:32:13 +08:00
committed by GitHub
parent 6352e1fb2b
commit 9f9444a72b
5 changed files with 14 additions and 1 deletions

View File

@@ -99,7 +99,8 @@ void GPService::connect(QString server, QString username, QString passwd, QStrin
QString bin = findBinary();
if (bin == nullptr) {
log("Could not found openconnect binary, make sure openconnect is installed, exiting.");
log("Could not find openconnect binary, make sure openconnect is installed, exiting.");
emit error("The OpenConect CLI was not found, make sure it has been installed!");
return;
}