Fixed use of %s instead of %{1} in format() call.

This commit is contained in:
crs 2002-10-15 22:08:10 +00:00
parent c405c58c64
commit a18b1462cf
2 changed files with 2 additions and 2 deletions

View File

@ -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"));

View File

@ -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());
} }