aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/system.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-17 19:02:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-17 19:02:13 +0200
commitdcfa408887b588e9f9eee608c1358a5a81330e9e (patch)
tree168f66fe25786df731aa2bbf32d1d8f3b683bcdb /src/rpc/system.rs
parent70383b4363c9d9d1ddebcb29c60f833022e97d24 (diff)
downloadgarage-dcfa408887b588e9f9eee608c1358a5a81330e9e.tar.gz
garage-dcfa408887b588e9f9eee608c1358a5a81330e9e.zip
Implement ImportKey
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r--src/rpc/system.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 78d538ec..1d7c3ea4 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -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)))
}
}