From a4f4f5df0bc19e9e201e07748b5680554c373b87 Mon Sep 17 00:00:00 2001 From: Yves Date: Tue, 18 Feb 2025 22:29:25 +0100 Subject: [PATCH] Don't throw exception --- src/http_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http_server.cpp b/src/http_server.cpp index 7c605a5..a9580df 100644 --- a/src/http_server.cpp +++ b/src/http_server.cpp @@ -167,8 +167,7 @@ void HttpServer::HandleGetLocalEvents(const httplib::Request &req, httplib::Resp void HttpServer::HandleGetLocalToken(const httplib::Request &req, httplib::Response &res) { if (!ddb_instance_->ExtensionIsLoaded("motherduck")) { - res.status = 500; - res.set_content("MotherDuck extension is not loaded", "text/plain"); + res.set_content("", "text/plain"); // UI expects an empty response if the extension is not loaded return; }