Skip to content

Commit

Permalink
Output better error message for flash_proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Oct 8, 2017
1 parent 5a175ec commit 607baf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migen/build/generic_programmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def find_flash_proxy(self):
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):
Expand Down

0 comments on commit 607baf2

Please sign in to comment.