Commit b0f3c485 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Fix error message for 'NotFound' error during login

parent 11491a77
......@@ -42,6 +42,7 @@ void LoginJob::login()
setError(etebase_error_get_code());
const char *err = etebase_error_get_message();
setErrorText(QString::fromUtf8(err));
return;
}
mAccountStatusResult = mClientState->accountStatus();
qCDebug(ETESYNC_LOG) << "Account status result" << mAccountStatusResult;
......
......@@ -125,6 +125,8 @@ bool LoginPage::validatePage()
mLoginLabel->setText(i18n("Please ensure that the server URL is correct. The URL should start with http:// or https://."));
} else if (mErrorCode == EtebaseErrorCode::ETEBASE_ERROR_CODE_CONNECTION) {
mLoginLabel->setText(i18n("Could not connect to the server. Please ensure that the server URL is correct."));
} else if (mErrorCode == EtebaseErrorCode::ETEBASE_ERROR_CODE_NOT_FOUND) {
mLoginLabel->setText(i18n("Account does not exist. Please sign up for the service first."));
} else {
mLoginLabel->setText(i18n(charArrFromQString(mErrorMessage)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment