mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
main: display error message if program fails
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user