From 4dae3a9f4da14aa602ffda87ac4c3d2682577ba1 Mon Sep 17 00:00:00 2001 From: Andrew Dennison Date: Mon, 29 Jan 2024 16:19:44 +1100 Subject: [PATCH] build/openfpgaloader: report command line on error Helps explain failures --- litex/build/openfpgaloader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/litex/build/openfpgaloader.py b/litex/build/openfpgaloader.py index 8721dcfb9..21e704bf4 100644 --- a/litex/build/openfpgaloader.py +++ b/litex/build/openfpgaloader.py @@ -71,4 +71,8 @@ class OpenFPGALoader(GenericProgrammer): cmd.append(str(value)) # Execute Command. - self.call(cmd) + try: + self.call(cmd) + except OSError as e: + print(' '.join(cmd)) + raise