Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Runtime
Commits
b0f3c485
Commit
b0f3c485
authored
Oct 02, 2020
by
Shashwat Jolly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error message for 'NotFound' error during login
parent
11491a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
resources/etesync/loginjob.cpp
resources/etesync/loginjob.cpp
+1
-0
resources/etesync/setupwizard.cpp
resources/etesync/setupwizard.cpp
+2
-0
No files found.
resources/etesync/loginjob.cpp
View file @
b0f3c485
...
...
@@ -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
;
...
...
resources/etesync/setupwizard.cpp
View file @
b0f3c485
...
...
@@ -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
)));
}
...
...
Write
Preview
Markdown
is supported
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