From a18b1462cf05eb6bcd2b6a3dd635cd0a047e58b7 Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 15 Oct 2002 22:08:10 +0000 Subject: [PATCH] Fixed use of %s instead of %{1} in format() call. --- cmd/synergys/synergys.cpp | 2 +- lib/server/CConfig.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/synergys/synergys.cpp b/cmd/synergys/synergys.cpp index 7191a440..522f6710 100644 --- a/cmd/synergys/synergys.cpp +++ b/cmd/synergys/synergys.cpp @@ -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")); diff --git a/lib/server/CConfig.cpp b/lib/server/CConfig.cpp index 942e23c9..c068790c 100644 --- a/lib/server/CConfig.cpp +++ b/lib/server/CConfig.cpp @@ -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()); }