main: xvc_server: catch exception

This commit is contained in:
Gwenhael Goavec-Merou 2023-01-02 18:02:43 +01:00
parent 2182a8ff7f
commit 84aa0d14b9
1 changed files with 5 additions and 1 deletions

View File

@ -415,7 +415,11 @@ int main(int argc, char **argv)
/* XVC server */
/* ------------------- */
if (args.xvc) {
return run_xvc_server(args, cable, &pins_config);
try {
return run_xvc_server(args, cable, &pins_config);
} catch (std::exception &e) {
return EXIT_FAILURE;
}
}
#endif