Don't throw exception

This commit is contained in:
Yves
2025-02-18 22:29:25 +01:00
parent e9d9c1ceac
commit a4f4f5df0b

View File

@@ -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;
}