mirror of https://notabug.org/acetone/ircabot.git
types typo
parent
2cfa9d51ed
commit
571322c759
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue