Commit d1fc622b authored by Ronan's avatar Ronan

feat(transaction): add traces in destructor

parent 9a989071
......@@ -5,6 +5,8 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#define SOCI_SOURCE
#include "soci/transaction.h"
#include "soci/error.h"
......@@ -25,8 +27,14 @@ transaction::~transaction()
{
rollback();
}
catch (const std::exception &e)
{
std::cerr << "[SOCI ERROR]Unhandled exception in soci::transaction destructor: " << e.what() << std::endl;
}
catch (...)
{}
{
std::cerr << "[SOCI ERROR]Unhandled generic exception in soci::transaction destructor." << std::endl;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment