Commit 09fa9b17 authored by Davis King's avatar Davis King

Improved error reporting.

parent a80e573c
...@@ -495,7 +495,8 @@ namespace dlib ...@@ -495,7 +495,8 @@ namespace dlib
sout << "An exception was thrown while attempting to receive a message from processing node " << sender_id << ".\n"; sout << "An exception was thrown while attempting to receive a message from processing node " << sender_id << ".\n";
sout << " Sending processing node address: " << con->con->get_foreign_ip() << ":" << con->con->get_foreign_port() << std::endl; sout << " Sending processing node address: " << con->con->get_foreign_ip() << ":" << con->con->get_foreign_port() << std::endl;
sout << " Receiving processing node address: " << con->con->get_local_ip() << ":" << con->con->get_local_port() << std::endl; sout << " Receiving processing node address: " << con->con->get_local_ip() << ":" << con->con->get_local_port() << std::endl;
sout << " Error message in the exception: " << e.what() << std::endl; sout << " Receiving processing node id: "<< _node_id << std::endl;
sout << " Error message in the exception: " << e.what() << std::endl;
auto_mutex lock(class_mutex); auto_mutex lock(class_mutex);
error_message = sout.str(); error_message = sout.str();
} }
...@@ -505,6 +506,7 @@ namespace dlib ...@@ -505,6 +506,7 @@ namespace dlib
sout << "An exception was thrown while attempting to receive a message from processing node " << sender_id << ".\n"; sout << "An exception was thrown while attempting to receive a message from processing node " << sender_id << ".\n";
sout << " Sending processing node address: " << con->con->get_foreign_ip() << ":" << con->con->get_foreign_port() << std::endl; sout << " Sending processing node address: " << con->con->get_foreign_ip() << ":" << con->con->get_foreign_port() << std::endl;
sout << " Receiving processing node address: " << con->con->get_local_ip() << ":" << con->con->get_local_port() << std::endl; sout << " Receiving processing node address: " << con->con->get_local_ip() << ":" << con->con->get_local_port() << std::endl;
sout << " Receiving processing node id: "<< _node_id << std::endl;
auto_mutex lock(class_mutex); auto_mutex lock(class_mutex);
error_message = sout.str(); error_message = sout.str();
} }
......
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