Skip to content
Snippets Groups Projects
Commit 3e39368d authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add main try catch to vision

parent ea7395db
No related branches found
No related tags found
No related merge requests found
Pipeline #28613 passed
......@@ -288,6 +288,8 @@ int main(int argc, char **argv) {
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
#endif
std::cout << "FTL Vision Node " << FTL_VERSION_LONG << std::endl;
try {
auto root = ftl::configure(argc, argv, "vision_default", {
"uri",
"fps",
......@@ -319,6 +321,11 @@ int main(int argc, char **argv) {
LOG(INFO) << "Terminating with code " << ftl::exit_code;
LOG(INFO) << "Branch: " << ftl::branch_name;
} catch (const std::exception &e) {
LOG(ERROR) << "Main Exception: " << e.what();
return -1;
}
return ftl::exit_code;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment