From 57d8e5cb6b943fd54d37b2f6df2487a95c5d479e Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Wed, 16 Oct 2013 08:24:02 -0500 Subject: [PATCH] add better clarification to exception printing --- examples/testee_server/testee_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/testee_server/testee_server.cpp b/examples/testee_server/testee_server.cpp index 09e8091ae1..895688619a 100644 --- a/examples/testee_server/testee_server.cpp +++ b/examples/testee_server/testee_server.cpp @@ -67,9 +67,9 @@ int main() { // Start the ASIO io_service run loop testee_server.run(); } catch (const std::exception & e) { - std::cout << e.what() << std::endl; + std::cout << "exception: " << e.what() << std::endl; } catch (websocketpp::lib::error_code e) { - std::cout << e.message() << std::endl; + std::cout << "error code: " << e.message() << std::endl; } catch (...) { std::cout << "other exception" << std::endl; }