Worked on exception reporting.

This commit is contained in:
Brad Arant committed 2024-09-25 17:15:03 -07:00
1 parent 387203f4b3
commit e655173a8f
7 files changed
+86 -69

No files matched your search

+4 -1
View File
@@ -21,7 +21,10 @@ namespace jet {
mysql = mysql_init(NULL);
mysql = mysql_real_connect(mysql, variables["host"].c_str(), variables["user"].c_str(), variables["password"].c_str(), variables["database"].c_str(), 0, NULL, 0);
if(!mysql)
throw coreutils::Exception("database and host parameters are not valid.");
std::cout << "mysql: " << mysql << std::endl;
processContainer(container);