build/generic_programmer: Ask bitstream presence check on load_bitstream error.

This commit is contained in:
Florent Kermarrec 2022-07-05 17:57:16 +02:00
parent a285071154
commit 12bbc0946a
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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)