From df23276d3ca4c5da0a13d69c59276018d1cd4f87 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sat, 25 Apr 2026 13:56:55 -0300 Subject: [PATCH] Improve subprocess error message --- gamdl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamdl/utils.py b/gamdl/utils.py index 48d5738..2a41b8b 100644 --- a/gamdl/utils.py +++ b/gamdl/utils.py @@ -20,7 +20,7 @@ async def async_subprocess(*args: str, silent: bool = False) -> None: stdout, stderr = await proc.communicate() if proc.returncode != 0: - msg = f'"{args[0]}" exited with code {proc.returncode}' + msg = f"Exited with code {proc.returncode}: {' '.join(args)}" if stdout: msg += f"\nstdout:\n{stdout.decode()}"