Commit Diff


commit - c2a2eaa25bad5582da022cdbcd60c3c3b05755bc
commit + 030bfa03cf5e60746024c59b274e54876eb12610
blob - dd05b75b631b9e44020bd70b33e9f10903eaadf6
blob + 5f153b98743af53e0877d2d06e255a45e6d8aa9d
--- src/main.rs
+++ src/main.rs
@@ -32,12 +32,5 @@ async fn main() {
 
     let http = Http::new_with_token(&token);
     let cid = ChannelId(channel_id.parse::<u64>().expect("CHANNEL_ID not an unsigned integer"));
-    match cid.send_message(&http, |m| m.content(msg)).await {
-        Ok(_) => {
-        },
-        Err(_) => {
-        },
-    };
-
-    // done, nothing more to do
+    cid.send_message(&http, |m| m.content(msg)).await.expect(format!("Failed sending message to channel {}", cid));
 }