From 1aa0efc4a67ca184ca91c77242907f8bfff996e2 Mon Sep 17 00:00:00 2001 From: Johannes Heuel Date: Tue, 18 Jun 2024 11:26:52 +0200 Subject: [PATCH] collect all youtube errors --- src/commands/play.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/play.rs b/src/commands/play.rs index 1384a04..ada08e5 100644 --- a/src/commands/play.rs +++ b/src/commands/play.rs @@ -56,6 +56,7 @@ async fn get_tracks( if stderr.contains("YouTube said: The playlist does not exist.") { return Err("YouTube said: The playlist does not exist.".into()); } + return Err(stderr.into()); } return Err("No tracks found".into()); }