X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/751302dd67ffdeb0dfe72c4d2a7a2d58303cf5f3..34fb46485db0fb44f8dcc532866d988f8e54caa2:/Server/tests/server_test.cpp diff --git a/Server/tests/server_test.cpp b/Server/tests/server_test.cpp index 1927af4..f9989b5 100644 --- a/Server/tests/server_test.cpp +++ b/Server/tests/server_test.cpp @@ -56,9 +56,17 @@ int main(int argc, char* argv[]) { // Inicializa threads. Glib::thread_init(); + try { // Corre el server. Server server(port); server.run(false); + } catch (const char* e) { + cerr << "Error: " << e << endl; + } catch (exception e) { + cerr << "Error: " << e.what() << endl; + } catch (...) { + cerr << "Error desconocido!" << endl; + } return 0; }