Implement ConnectClusterNodes

This commit is contained in:
Alex Auvolat
2022-05-17 18:43:47 +02:00
parent 440a577563
commit 70383b4363
5 changed files with 74 additions and 4 deletions
+8 -4
View File
@@ -383,10 +383,14 @@ impl System {
}
}
}
return Err(Error::Message(format!(
"Could not connect to specified peers. Errors: {:?}",
errors
)));
if errors.len() == 1 {
return Err(Error::Message(errors[0].1.to_string()));
} else {
return Err(Error::Message(format!(
"Could not connect to specified peers. Errors: {:?}",
errors
)));
}
}
// ---- INTERNALS ----