diff options
author | Hristo Venev <hristo@venev.name> | 2019-09-30 14:54:09 +0300 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-09-30 15:34:34 +0300 |
commit | e7e12e4c27ba462a9f8e6ec15373d00c3d72bb24 (patch) | |
tree | 67ac67cdb3c7cc6fa9db8b097f9be3db4cbaebd9 /src/manager/builder.rs | |
parent | 5cd9be6edd6cfc6f492907709eb1cfda4a99923f (diff) |
Lowercase errors.
Diffstat (limited to 'src/manager/builder.rs')
-rw-r--r-- | src/manager/builder.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/manager/builder.rs b/src/manager/builder.rs index 037d2a9..9580d07 100644 --- a/src/manager/builder.rs +++ b/src/manager/builder.rs @@ -38,9 +38,9 @@ impl fmt::Display for Error { f, "{} [{}]/[{}]: {}", if self.important { - "Invalid peer" + "invalid peer" } else { - "Misconfigured peer" + "misconfigured peer" }, self.src, self.peer, @@ -108,7 +108,7 @@ impl<'a> ConfigBuilder<'a> { if p.peer.public_key == self.public_key { self.err.push(Error::new( - "The local peer cannot be a road warrior", + "the local peer cannot be a road warrior", src, &p.peer, true, @@ -122,7 +122,7 @@ impl<'a> ConfigBuilder<'a> { ent } else { self.err - .push(Error::new("Unknown base peer", src, &p.peer, true)); + .push(Error::new("unknown base peer", src, &p.peer, true)); return; }; add_peer(&mut self.err, ent, src, &p.peer) @@ -140,7 +140,7 @@ fn insert_peer<'b>( ) -> &'b mut model::Peer { match c.peers.entry(p.public_key) { hash_map::Entry::Occupied(ent) => { - err.push(Error::new("Duplicate public key", src, p, true)); + err.push(Error::new("duplicate public key", src, p, true)); ent.into_mut() } hash_map::Entry::Vacant(ent) => { @@ -169,7 +169,7 @@ fn find_psk<'a>( if let Some(ref want_src) = &want.source { if *want_src != src.name { - return Err(Error::new("Peer source not allowed", src, p, true)); + return Err(Error::new("peer source not allowed", src, p, true)); } } @@ -199,9 +199,9 @@ fn add_peer(err: &mut Vec<Error>, ent: &mut model::Peer, src: &Source, p: &proto if removed { let msg = if added { - "Some IPs removed" + "some IPs removed" } else { - "All IPs removed" + "all IPs removed" }; err.push(Error::new(msg, src, p, !added)); } |