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
Network
KIO Extras
Commits
07ce29df
Commit
07ce29df
authored
Feb 13, 2021
by
Jonathan Marten
Browse files
nfs: Report the RPC error message
parent
0488ac0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nfs/kio_nfs.cpp
View file @
07ce29df
...
...
@@ -852,10 +852,12 @@ KIO::Error NFSProtocol::openConnection(const QString& host, int prog, int vers,
bool
NFSProtocol
::
checkForError
(
int
clientStat
,
int
nfsStat
,
const
QString
&
text
)
{
if
(
clientStat
!=
RPC_SUCCESS
)
if
(
clientStat
!=
RPC_SUCCESS
)
{
qCDebug
(
LOG_KIO_NFS
)
<<
"RPC error"
<<
clientStat
<<
text
;
m_slave
->
setError
(
KIO
::
ERR_INTERNAL_SERVER
,
i18n
(
"RPC error %1"
,
QString
::
number
(
clientStat
)));
const
char
*
errstr
=
clnt_sperrno
(
static_cast
<
clnt_stat
>
(
clientStat
));
qCDebug
(
LOG_KIO_NFS
)
<<
"RPC error"
<<
clientStat
<<
errstr
<<
"on"
<<
text
;
m_slave
->
setError
(
KIO
::
ERR_INTERNAL_SERVER
,
i18n
(
"RPC error %1, %2"
,
QString
::
number
(
clientStat
),
errstr
));
return
false
;
}
...
...
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