From: Tim 'mithro' Ansell Date: Sat, 15 Apr 2017 11:31:31 +0000 (+1000) Subject: Output better error message for flash_proxy. X-Git-Tag: 24jan2021_ls180~1802^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c013948b12e7958cb330be37804e4065ff5baa4;p=litex.git Output better error message for flash_proxy. --- diff --git a/litex/build/generic_programmer.py b/litex/build/generic_programmer.py index b9540415..23a9eb12 100644 --- a/litex/build/generic_programmer.py +++ b/litex/build/generic_programmer.py @@ -17,7 +17,10 @@ class GenericProgrammer: fullname = os.path.join(fulldir, self.flash_proxy_basename) if os.path.exists(fullname): return fullname - raise OSError("Failed to find flash proxy bitstream") + raise OSError( + "Failed to find flash proxy bitstream %s, searched:\n %s\n" % ( + self.flash_proxy_basename, + "\n ".join(self.flash_proxy_dirs))) # must be overloaded by specific programmer def load_bitstream(self, bitstream_file):