From 8b38015fab24f17d4d658115c3113ad79e898fed Mon Sep 17 00:00:00 2001 From: RealBeepMcJeep Date: Wed, 30 Aug 2023 09:24:01 -0700 Subject: [PATCH] stop polluting my global namespace --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ab5acd691..969f6ac8b 100644 --- a/server.js +++ b/server.js @@ -711,7 +711,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r console.log("Endpoint response:", data); return response_generate.send(data); } catch (error) { - retval = { error: true, status: error.status, response: error.statusText }; + let retval = { error: true, status: error.status, response: error.statusText }; console.log("Endpoint error:", error); try { retval.response = await error.json();