X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/751302dd67ffdeb0dfe72c4d2a7a2d58303cf5f3..f29a7129de56edca96ea8ef58576898c1e52ed6f:/Server/tests/server_test.cpp?ds=sidebyside 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; }