MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / handleError

Function handleError

web/js/chat.js:359–370  ·  view source on GitHub ↗
(errorMsg)

Source from the content-addressed store, hash-verified

357}
358
359function handleError(errorMsg) {
360 if (!currentAssistantMsg) {
361 appendMessage("assistant", "Error: " + errorMsg).classList.add("error");
362 } else {
363 const errDiv = document.createElement("div");
364 errDiv.className = "content error-text";
365 errDiv.textContent = "Error: " + errorMsg;
366 currentAssistantMsg.appendChild(errDiv);
367 currentAssistantMsg.classList.add("error");
368 }
369 enableInput();
370}
371
372function handleDone() {
373 let fullText = "";

Callers 3

sendMessageFunction · 0.85
sendBotCommandFunction · 0.85
getOrCreateWsFunction · 0.85

Calls 2

appendMessageFunction · 0.85
enableInputFunction · 0.85

Tested by

no test coverage detected