Main, ...: catch any exception, not just std::runtime_error
This commit is contained in:
@@ -220,11 +220,11 @@ ServerSocket::Open()
|
||||
|
||||
try {
|
||||
i.Open();
|
||||
} catch (const std::runtime_error &e) {
|
||||
} catch (...) {
|
||||
if (good != nullptr && good->GetSerial() == i.GetSerial()) {
|
||||
const auto address_string = i.ToString();
|
||||
const auto good_string = good->ToString();
|
||||
FormatError(e,
|
||||
FormatError(std::current_exception(),
|
||||
"bind to '%s' failed "
|
||||
"(continuing anyway, because "
|
||||
"binding to '%s' succeeded)",
|
||||
|
Reference in New Issue
Block a user