aboutsummaryrefslogtreecommitdiff
path: root/examples/08_env_logging/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/08_env_logging/src')
-rw-r--r--examples/08_env_logging/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/08_env_logging/src/main.rs b/examples/08_env_logging/src/main.rs
index 874088a..ca6af8f 100644
--- a/examples/08_env_logging/src/main.rs
+++ b/examples/08_env_logging/src/main.rs
@@ -37,7 +37,7 @@ fn main() {
let token = env::var("DISCORD_TOKEN")
.expect("Expected a token in the environment");
- let mut client = Client::new(&token, Handler);
+ let mut client = Client::new(&token, Handler).expect("Err creating client");
if let Err(why) = client.start() {
error!("Client error: {:?}", why);