mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-19 17:46:17 +00:00
Implement ConnectClusterNodes
This commit is contained in:
+8
-4
@@ -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 ----
|
||||
|
||||
Reference in New Issue
Block a user