server BF
This commit is contained in:
parent
f3b5b09ed0
commit
bd11d7973c
@ -185,6 +185,6 @@ try
|
|||||||
catch (Exception $mex)
|
catch (Exception $mex)
|
||||||
{
|
{
|
||||||
reportError("Root try-catch triggered", $mex);
|
reportError("Root try-catch triggered", $mex);
|
||||||
if ($pdo->inTransaction()) $pdo->rollBack();
|
if ($pdo !== null && $pdo->inTransaction()) $pdo->rollBack();
|
||||||
api_return(500, ['success' => false, 'error' => ERR::INTERNAL_EXCEPTION, 'errhighlight' => -1, 'message' => 'PHP script threw exception.'."\n\n".'Exception: ' . $e->getMessage()]);
|
api_return(500, ['success' => false, 'error' => ERR::INTERNAL_EXCEPTION, 'errhighlight' => -1, 'message' => 'PHP script threw exception.'."\n\n".'Exception: ' . $e->getMessage()]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user