mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
tools: add catches for C++ exceptions
This commit is contained in:
committed by
Chang, Harry
parent
b5a8644b1f
commit
229f3d5080
@@ -1065,6 +1065,9 @@ int HS_CDECL main(int argc, char *argv[]) {
|
||||
} catch (const SqlFailure &f) {
|
||||
cerr << f.message << '\n';
|
||||
return -1;
|
||||
} catch (const std::runtime_error &e) {
|
||||
cerr << "Internal error: " << e.what() << '\n';
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user