Skip to content

Commit

Permalink
Addressing feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
kothiga committed Feb 22, 2024
1 parent 692b31e commit 0bc7c0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Server/HTTPHandler.cpp
Expand Up @@ -884,7 +884,9 @@ void HTTPHandler::processQuery(
{
if (settings.http_write_exception_in_output_format && output_format.supportsWritingException())
{
ExecutionStatus status = ExecutionStatus::fromCurrentException("", false);
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);

output_format.setException(getCurrentExceptionMessage(false));
Expand Down

0 comments on commit 0bc7c0a

Please sign in to comment.