mirror of
https://github.com/logos-co/logos-libp2p-module.git
synced 2026-08-31 21:21:10 +00:00
print errors
This commit is contained in:
@@ -42,8 +42,10 @@ int main()
|
||||
/// Calling `start()` creates the libp2p context, binds the configured
|
||||
/// address, and begins accepting connections.
|
||||
|
||||
if (!node.start().success) {
|
||||
fprintf(stderr, "Failed to start node\n");
|
||||
StdLogosResult startRes = node.start();
|
||||
if (!startRes.success) {
|
||||
fprintf(stderr, "Failed to start node: %s\n",
|
||||
startRes.error.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user