types typo

master
const an teen 2022-01-01 03:41:11 -05:00
parent 2cfa9d51ed
commit 571322c759
1 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ void ApplicationData::readConfig()
}
logDir.setPath(m_logPath);
if (not logDir.mkdir("TeSt__FoLdEr")) {
throw std::runtime_error("ApplicationData::readConfig(): " + m_logPath.toStdString() + " is unwritable");
throw std::runtime_error("ApplicationData::readConfig(): Log path '" + m_logPath.toStdString() + "' is unwritable");
}
logDir.rmdir("TeSt__FoLdEr");
@ -160,7 +160,7 @@ void ApplicationData::readConfig()
}
bool success = false;
m_webInterfacePort = global::getValue(globalSection, "bind_to_port").toUInt(&success);
m_webInterfacePort = global::getValue(globalSection, "bind_to_port").toUShort(&success);
if (not success) {
throw std::runtime_error("ApplicationData::readConfig(): 'bind_to_port' in [GLOBAL] is incorrect");
}
@ -211,7 +211,7 @@ void ApplicationData::readConfig()
}
success = false;
newConnection.port = global::getValue(currentSection, "port").toUInt(&success);
newConnection.port = global::getValue(currentSection, "port").toUShort(&success);
if (not success) {
qInfo().noquote() << "[" + newConnection.displayName + "]" << "ignored (wrong 'port')";
continue;