mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +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));
|
||||
std::ifstream configStream(pathname);
|
||||
if (!configStream) {
|
||||
throw XConfigRead("cannot open configuration");
|
||||
throw XConfigRead("cannot open file");
|
||||
}
|
||||
configStream >> s_config;
|
||||
LOG((CLOG_DEBUG "configuration read successfully"));
|
||||
|
||||
@@ -823,5 +823,5 @@ XConfigRead::~XConfigRead()
|
||||
CString
|
||||
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