build/generic_programmer: Ask bitstream presence check on load_bitstream error.
This commit is contained in:
parent
a285071154
commit
12bbc0946a
|
@ -34,8 +34,9 @@ class EfinixProgrammer(GenericProgrammer):
|
|||
"-m", "jtag"], env=os.environ.copy()) != 0):
|
||||
msg = f"Error occured during {self.__class__.__name__}'s call, please check:\n"
|
||||
msg += f"- {self.__class__.__name__} installation.\n"
|
||||
msg += f"- access permissions.\n"
|
||||
msg += f"- hardware and cable."
|
||||
msg += f"- Access permissions.\n"
|
||||
msg += f"- Hardware and cable.\n"
|
||||
msg += f"- Bitstream presence."
|
||||
raise OSError(msg)
|
||||
|
||||
|
||||
|
|
|
@ -95,6 +95,7 @@ class GenericProgrammer:
|
|||
if (subprocess.call(command) != 0) and check:
|
||||
msg = f"Error occured during {self.__class__.__name__}'s call, please check:\n"
|
||||
msg += f"- {self.__class__.__name__} installation.\n"
|
||||
msg += f"- access permissions.\n"
|
||||
msg += f"- hardware and cable."
|
||||
msg += f"- Access permissions.\n"
|
||||
msg += f"- Hardware and cable.\n"
|
||||
msg += f"- Bitstream presence."
|
||||
raise OSError(msg)
|
||||
|
|
Loading…
Reference in New Issue