mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-18 19:47:15 +01:00
Update Data.cpp
This commit is contained in:
parent
3d11796465
commit
eef9063628
@ -547,7 +547,15 @@ static void ProcessPocoData()
|
|||||||
if (!inst->mFunc.IsNull())
|
if (!inst->mFunc.IsNull())
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
inst->mFunc.Execute(inst->mStmt, inst->mRes.data());
|
// The active method may have failed. In which case we forward the error message instead
|
||||||
|
if (!inst->mRes.failed())
|
||||||
|
{
|
||||||
|
inst->mFunc.Execute(inst->mStmt, inst->mRes.data());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
inst->mFunc.Execute(inst->mStmt, inst->mRes.exception()->message());
|
||||||
|
}
|
||||||
} catch (const Poco::Exception & e) {
|
} catch (const Poco::Exception & e) {
|
||||||
LogErr("SqData.Process: %s", e.displayText().c_str());
|
LogErr("SqData.Process: %s", e.displayText().c_str());
|
||||||
} catch (const std::exception & e) {
|
} catch (const std::exception & e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user