Commit 457ee4d5 authored by Harald Sitter's avatar Harald Sitter 🌈
Browse files

smb: put unmapped errno value into error message

otherwise it's annoyingly hard to figure out which error isn't mapped.
this is done through a nested composition so as to not disturb the
localized string in 20.04
parent a4aefbbd
......@@ -357,7 +357,13 @@ SMBSlave::SMBError SMBSlave::errnumToKioError(const SMBUrl &url, const int errNu
"unsure about that - you can send it privately to the developers "
"if they ask for it)")};
default:
return SMBError {ERR_INTERNAL, i18n("Unknown error condition in stat: %1", QString::fromLocal8Bit(strerror(errNum)))};
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))))
};
}
}
......
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