diff --git a/websocketpp/error.hpp b/websocketpp/error.hpp index 01f7146ba2..299fc3da94 100644 --- a/websocketpp/error.hpp +++ b/websocketpp/error.hpp @@ -28,6 +28,8 @@ #ifndef WEBSOCKETPP_ERROR_HPP #define WEBSOCKETPP_ERROR_HPP +#include + #include #include @@ -76,7 +78,10 @@ enum value { invalid_utf8, /// Bad or unknown connection - bad_connection + bad_connection, + + /// Unit testing utility error code + test }; // enum value @@ -116,6 +121,8 @@ public: return "Invalid UTF-8"; case error::bad_connection: return "Bad Connection"; + case error::test: + return "Test Error"; default: return "Unknown"; }