handlers: HandlerPageEdit: Add transaction rollback on exception

Šī revīzija ir iekļauta:
Albert S. 2023-07-26 20:21:44 +02:00
vecāks aa362331a5
revīzija 32af0e2857

Parādīt failu

@ -115,6 +115,7 @@ Response HandlerPageEdit::handleRequest(PageDao &pageDao, std::string pagename,
}
catch(const DatabaseException &e)
{
this->database->rollbackTransaction();
Logger::debug() << "Error saving revision: " << e.what();
return errorResponse("Database error", "A database error occured while trying to save this revision");
}