From 555a273c2245e92f9f29f9af77acfe833bf14a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 12 Aug 2026 22:23:10 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20a=20failed=20import?= =?UTF-8?q?=20says=20which=20file=20failed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two files on argv that both fail read as "IMPORT FAILED: No such file or directory (os error 2)" and "IMPORT FAILED: file contains a box with a larger size than it" -- two messages, neither of them naming what they are about. Harmless while the bar showed one message and lost the other; the moment the queue shows both, an unnamed failure is a failure about nothing. --- crates/app/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index b303682..95a0d18 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -4373,7 +4373,10 @@ impl Player { file_name(path) ) } - Some(Err(e)) => format!("IMPORT FAILED: {e}"), + // Named, because two files can fail in one launch and the queue now + // shows both: "No such file or directory" twice over, with nothing + // saying which file, is two messages that answer nothing. + Some(Err(e)) => format!("IMPORT FAILED: {} — {e}", file_name(path)), None => self.open_media(path, false, subs), }; eprintln!("{text}");