Fix tests

This commit is contained in:
avogar 2024-04-02 18:18:32 +00:00
parent 98f99db6b2
commit 22fb91a6ef

View File

@ -902,6 +902,7 @@ void HTTPHandler::processQuery(
{
bool with_stacktrace = (params.getParsed<bool>("stacktrace", false) && server.config().getBool("enable_http_stacktrace", true));
ExecutionStatus status = ExecutionStatus::fromCurrentException("", with_stacktrace);
formatExceptionForClient(status.code, request, response, used_output);
current_output_format.setException(status.message);
current_output_format.finalize();
used_output.exception_is_written = true;