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 9, 2017
1 parent 5a175ec commit 00788ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion migen/build/generic_programmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ 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 {}, searched:\n"
" {}\n".format(
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 00788ef

Please sign in to comment.