stop polluting my global namespace

This commit is contained in:
RealBeepMcJeep 2023-08-30 09:24:01 -07:00
parent 271a429a62
commit 8b38015fab
1 changed files with 1 additions and 1 deletions

View File

@ -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();