"...git@developer.sourcefind.cn:OpenDAS/torch-scatter.git" did not exist on "f319a8742861aa2208a4dc8d6e8cfd041764dd35"
Commit 50ce2abb authored by Davis King's avatar Davis King
Browse files

Made the bridge trap and log std::exception exceptions rather than

letting them fly out and terminate the application.
parent 2bc6cf55
...@@ -400,6 +400,12 @@ namespace dlib ...@@ -400,6 +400,12 @@ namespace dlib
<< con->get_foreign_ip() << ":" << con->get_foreign_port() << con->get_foreign_ip() << ":" << con->get_foreign_port()
<< ".\nThe exception error message is: \n" << e.what(); << ".\nThe exception error message is: \n" << e.what();
} }
catch (std::exception& e)
{
dlog << LERROR << "std::exception thrown while deserializing message from "
<< con->get_foreign_ip() << ":" << con->get_foreign_port()
<< ".\nThe exception error message is: \n" << e.what();
}
...@@ -489,6 +495,12 @@ namespace dlib ...@@ -489,6 +495,12 @@ namespace dlib
<< con->get_foreign_ip() << ":" << con->get_foreign_port() << con->get_foreign_ip() << ":" << con->get_foreign_port()
<< ".\nThe exception error message is: \n" << e.what(); << ".\nThe exception error message is: \n" << e.what();
} }
catch (std::exception& e)
{
dlog << LERROR << "std::exception thrown while serializing message to "
<< con->get_foreign_ip() << ":" << con->get_foreign_port()
<< ".\nThe exception error message is: \n" << e.what();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment