Browse Source

On a read error, show the node number the error came from

Ian Goldberg 1 year ago
parent
commit
b8d3ca3afd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      App/teems.cpp

+ 2 - 2
App/teems.cpp

@@ -259,8 +259,8 @@ int main(int argc, char **argv)
             NodeIO &node = netio.node(node_num);
             NodeIO &node = netio.node(node_num);
             node.recv_commands(
             node.recv_commands(
                 // error_cb
                 // error_cb
-                [](boost::system::error_code ec) {
-                    printf("Error %s\n", ec.message().c_str());
+                [node_num](boost::system::error_code ec) {
+                    printf("Error %s from %d\n", ec.message().c_str(), node_num);
                 },
                 },
                 // epoch_cb
                 // epoch_cb
                 [](uint32_t epoch) {
                 [](uint32_t epoch) {