Commit b0f3c485 authored by Shashwat Jolly's avatar Shashwat Jolly

Fix error message for 'NotFound' error during login

parent 11491a77
...@@ -42,6 +42,7 @@ void LoginJob::login() ...@@ -42,6 +42,7 @@ void LoginJob::login()
setError(etebase_error_get_code()); setError(etebase_error_get_code());
const char *err = etebase_error_get_message(); const char *err = etebase_error_get_message();
setErrorText(QString::fromUtf8(err)); setErrorText(QString::fromUtf8(err));
return;
} }
mAccountStatusResult = mClientState->accountStatus(); mAccountStatusResult = mClientState->accountStatus();
qCDebug(ETESYNC_LOG) << "Account status result" << mAccountStatusResult; qCDebug(ETESYNC_LOG) << "Account status result" << mAccountStatusResult;
......
...@@ -125,6 +125,8 @@ bool LoginPage::validatePage() ...@@ -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://.")); 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) { } 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.")); 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 { } else {
mLoginLabel->setText(i18n(charArrFromQString(mErrorMessage))); 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