Output better error message for flash_proxy.

This commit is contained in:
Tim 'mithro' Ansell 2017-04-15 21:31:31 +10:00
parent 279ec488e3
commit 2c013948b1
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ class GenericProgrammer:
fullname = os.path.join(fulldir, self.flash_proxy_basename) fullname = os.path.join(fulldir, self.flash_proxy_basename)
if os.path.exists(fullname): if os.path.exists(fullname):
return 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 # must be overloaded by specific programmer
def load_bitstream(self, bitstream_file): def load_bitstream(self, bitstream_file):