mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 21:56:13 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user