made all getWhat() methods on exceptions consistent. they now

all use format() the same way.  also changed format() to actually
do formatting.  however, it doesn't try looking up formatting
strings by id, it just uses the fallback format string.
This commit is contained in:
crs
2002-07-25 17:52:40 +00:00
parent 1fd8e25f7d
commit f129841b38
10 changed files with 59 additions and 37 deletions

View File

@@ -336,9 +336,9 @@ parse(int argc, const char** argv)
try {
s_synergyAddress = CNetworkAddress(argv[i + 1], kDefaultPort);
}
catch (XSocketAddress&) {
log((CLOG_PRINT "%s: invalid address for `%s'" BYE,
pname, argv[i], pname));
catch (XSocketAddress& e) {
log((CLOG_PRINT "%s: invalid address for `%s'. %s." BYE,
pname, argv[i], e.what(), pname));
bye(kExitArgs);
}
++i;
@@ -349,9 +349,9 @@ parse(int argc, const char** argv)
try {
s_httpAddress = CNetworkAddress(argv[i + 1], kDefaultPort + 1);
}
catch (XSocketAddress&) {
log((CLOG_PRINT "%s: invalid address for `%s'" BYE,
pname, argv[i], pname));
catch (XSocketAddress& e) {
log((CLOG_PRINT "%s: invalid address for `%s'. %s." BYE,
pname, argv[i], e.what(), pname));
bye(kExitArgs);
}
++i;