main: display error message if program fails
This commit is contained in:
parent
1e0a06288d
commit
be6ed217dd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue