added a log for when sound fails to upload
This commit is contained in:
1 parent
3465d7aab6
commit
7d72135123
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -732,7 +732,8 @@ async fn upload_new_sound(ctx: &Context, msg: &Message, args: Args) -> CommandRe
|
||||
msg.channel_id.say(&ctx, "Sound has been uploaded").await?;
|
||||
}
|
||||
|
||||
Err(_) => {
|
||||
Err(e) => {
|
||||
println!("Error occured during upload: {:?}", e);
|
||||
msg.channel_id.say(&ctx, "Sound failed to upload.").await?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user