main: display error message if program fails

This commit is contained in:
Gwenhael Goavec-Merou 2021-07-14 16:39:14 +02:00
parent 1e0a06288d
commit be6ed217dd
1 changed files with 1 additions and 0 deletions

View File

@ -412,6 +412,7 @@ int main(int argc, char **argv)
try {
fpga->program(args.offset);
} catch (std::exception &e) {
printError("Error: Failed to program FPGA: " + string(e.what()));
delete(fpga);
delete(jtag);
return EXIT_FAILURE;