diff --git a/examples/joke_bot/src/main.rs b/examples/joke_bot/src/main.rs index da241486..8a079dd0 100644 --- a/examples/joke_bot/src/main.rs +++ b/examples/joke_bot/src/main.rs @@ -259,7 +259,8 @@ async fn read_config() -> io::Result { error.push_str("\n required field `homeserver` is missing") } if let Err(e) = username { - error.push_str(&format!("\n {}", e)) + error.push_str("\n "); + error.push_str(&e); } Err(io::Error::new(io::ErrorKind::InvalidData, error)) }