mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-11 10:56:25 +08:00
Fixed use of %s instead of %{1} in format() call.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user