rxr: warnings shouldnt throw exception

This commit is contained in:
2019-11-29 11:09:41 +01:00
parent 1d6be74ee5
commit 2ece6b945e
7 changed files with 21 additions and 19 deletions

View File

@ -268,7 +268,7 @@ void ClientInterface::VerifyLock() {
void ClientInterface::VerifyIdle(Interface &socket) {
if (impl()->getStatus() != IDLE) {
std::ostringstream oss;
oss << "Can not execute " << GetFunctionNameFromEnum((enum detFuncs)fnum)
oss << "Can not execute " << getFunctionNameFromEnum((enum detFuncs)fnum)
<< " when receiver is not idle";
throw sls::SocketError(oss.str());
}
@ -286,7 +286,7 @@ int ClientInterface::exec_command(Interface &socket) {
if (!pipe) {
throw RuntimeError("Executing Command failed\n");
} else {
while (!feof(pipe.Get())) {
while (!feof(pipe.get())) {
if (fgets(temp.data(), tempsize, pipe.get()) != nullptr)
sresult += temp.data();
}