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:
Peter Thorson
2016-10-03 19:04:12 -05:00
parent 8434139b67
commit e65b277017
9 changed files with 36 additions and 33 deletions
+3 -3
View File
@@ -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;
}