print errors

This commit is contained in:
Vlado Pajić
2026-07-24 16:06:11 +02:00
parent 4fb5492ea7
commit e2bb836699
11 changed files with 217 additions and 110 deletions
+4 -2
View File
@@ -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;
}