Provide better error message for missing timestamp channel in message bridge
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: Ia47b72f547fa2e38208d627b0caa7ce2e1a4657d
diff --git a/aos/network/message_bridge_server_status.cc b/aos/network/message_bridge_server_status.cc
index 22270d9..f540b1e 100644
--- a/aos/network/message_bridge_server_status.cc
+++ b/aos/network/message_bridge_server_status.cc
@@ -126,6 +126,11 @@
configuration::GetChannel(event_loop_->configuration(), "/aos",
Timestamp::GetFullyQualifiedName(),
event_loop_->name(), destination_node);
+ CHECK(other_timestamp_channel)
+ << "Failed to find other timestamp channel \"/aos\" type "
+ << Timestamp::GetFullyQualifiedName() << " for destination node "
+ << destination_node->name()->string_view() << " from node "
+ << event_loop_->node()->name()->string_view();
ServerConnection *const server_connection =
FindServerConnection(destination_node->name()->string_view());