mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Improve subprocess error message
This commit is contained in:
+1
-1
@@ -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()}"
|
||||
|
||||
Reference in New Issue
Block a user