aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc')
-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)))
}
}