Commit afc32611 authored by Harald Sitter's avatar Harald Sitter 🌈
Browse files

smb: refine internal error string

in master we can break the string so it's slightly less rubbish. give it
context for the arguments. throw out the reference to stat since
this may occur from a number of calls. flatten the nested composition of
errno + strerr
parent 935e8f6a
......@@ -358,11 +358,11 @@ SMBSlave::SMBError SMBSlave::errnumToKioError(const SMBUrl &url, const int errNu
"if they ask for it)")};
default:
return SMBError {
// errnum is glued in to not break string freeze in 20.04
ERR_INTERNAL,
i18n("Unknown error condition in stat: %1",
QString("[%1] %2").arg(QString::number(errNum),
QString::fromLocal8Bit(strerror(errNum))))
i18nc("%1 is an error number, %2 either a pretty string or the number",
"Unknown error condition: [%1] %2",
QString::number(errNum),
QString::fromLocal8Bit(strerror(errNum)))
};
}
}
......
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