mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-18 23:13:45 +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:
@@ -49,8 +49,9 @@ CString
|
||||
XNetworkVersion::getWhat() const throw()
|
||||
{
|
||||
return format("XNetworkVersion",
|
||||
"unsupported network version %d.%d",
|
||||
m_major, m_minor);
|
||||
"unsupported network version %{1}.%{2}",
|
||||
CStringUtil::print("%d", m_major).c_str(),
|
||||
CStringUtil::print("%d", m_minor).c_str());
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +74,6 @@ CString
|
||||
XNetworkFunctionUnavailable::getWhat() const throw()
|
||||
{
|
||||
return format("XNetworkFunctionUnavailable",
|
||||
"missing network function %s",
|
||||
"missing network function %{1}",
|
||||
m_name.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user