Skip to content
Snippets Groups Projects
Commit 4319b3dd authored by Daniel Hornung's avatar Daniel Hornung
Browse files

STY: Catching all exceptions in cxxcaosdbcli

parent 1c14d4dd
No related branches found
No related tags found
No related merge requests found
Pipeline #12499 canceled
......@@ -68,5 +68,11 @@ auto main() -> int {
} catch (const caosdb::exceptions::ConfigurationError &exc) {
std::cout << "ConfigurationError: " << exc.what() << std::endl;
return exc.GetCode();
} catch (const std::exception& exc) {
std::cout << "Exception: " << exc.what() << std::endl;
return 1;
} catch (...) {
std::cout << "Some other exception." << std::endl;
return 2;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment