MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / setError

Function setError

src/components/referencesPanel/index.js:284–294  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

282 }
283
284 function setError(message) {
285 state.loading = false;
286 setSubtitle("Error");
287 $content.innerHTML = "";
288 $content.append(
289 <div className="empty-state">
290 <span className="icon error_outline" />
291 <span>{sanitize(message)}</span>
292 </div>,
293 );
294 }
295
296 const panelInstance = {
297 show,

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
setSubtitleFunction · 0.70

Tested by

no test coverage detected