Fixed use of %s instead of %{1} in format() call.
This commit is contained in:
parent
c405c58c64
commit
a18b1462cf
|
@ -516,7 +516,7 @@ loadConfig(const char* pathname, bool require)
|
||||||
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname));
|
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname));
|
||||||
std::ifstream configStream(pathname);
|
std::ifstream configStream(pathname);
|
||||||
if (!configStream) {
|
if (!configStream) {
|
||||||
throw XConfigRead("cannot open configuration");
|
throw XConfigRead("cannot open file");
|
||||||
}
|
}
|
||||||
configStream >> s_config;
|
configStream >> s_config;
|
||||||
LOG((CLOG_DEBUG "configuration read successfully"));
|
LOG((CLOG_DEBUG "configuration read successfully"));
|
||||||
|
|
|
@ -823,5 +823,5 @@ XConfigRead::~XConfigRead()
|
||||||
CString
|
CString
|
||||||
XConfigRead::getWhat() const throw()
|
XConfigRead::getWhat() const throw()
|
||||||
{
|
{
|
||||||
return format("XConfigRead", "read error: %s", m_error.c_str());
|
return format("XConfigRead", "read error: %{1}", m_error.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue