Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
b0f3c485
Commit
b0f3c485
authored
Oct 02, 2020
by
Shashwat Jolly
Browse files
Fix error message for 'NotFound' error during login
parent
11491a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/etesync/loginjob.cpp
View file @
b0f3c485
...
@@ -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
;
...
...
resources/etesync/setupwizard.cpp
View file @
b0f3c485
...
@@ -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
)));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment