Remove catching websocketpp::lib::error_code in examples, fixes #584
A few versions ago the library was standardized to only throw websocketpp::exception. Not all example code was updated.
This commit is contained in:
@@ -157,10 +157,10 @@ int main(int argc, char* argv[]) {
|
||||
try {
|
||||
perftest endpoint;
|
||||
endpoint.start(uri);
|
||||
} catch (const std::exception & e) {
|
||||
} catch (websocketpp::exception const & e) {
|
||||
std::cout << e.what() << std::endl;
|
||||
} catch (std::exception const & e) {
|
||||
std::cout << e.what() << std::endl;
|
||||
} catch (websocketpp::lib::error_code e) {
|
||||
std::cout << e.message() << std::endl;
|
||||
} catch (...) {
|
||||
std::cout << "other exception" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user