Implement ImportKey

This commit is contained in:
Alex Auvolat
2022-05-17 19:02:13 +02:00
parent 70383b4363
commit dcfa408887
6 changed files with 53 additions and 5 deletions
+2 -5
View File
@@ -384,12 +384,9 @@ impl System {
}
}
if errors.len() == 1 {
return Err(Error::Message(errors[0].1.to_string()));
Err(Error::Message(errors[0].1.to_string()))
} else {
return Err(Error::Message(format!(
"Could not connect to specified peers. Errors: {:?}",
errors
)));
Err(Error::Message(format!("{:?}", errors)))
}
}