MCPcopy
hub / github.com/AstrBotDevs/AstrBot / error

Function error

astrbot/dashboard/responses.py:18–22  ·  view source on GitHub ↗
(message: str, data: Any = None)

Source from the content-addressed store, hash-verified

16
17
18def error(message: str, data: Any = None) -> dict[str, Any]:
19 payload: dict[str, Any] = {"status": "error", "message": message}
20 if data is not None:
21 payload["data"] = data
22 return payload

Callers 15

auth_middlewareMethod · 0.90
_alias_errorFunction · 0.90
_serialize_resultFunction · 0.90
_runFunction · 0.90
_download_skillFunction · 0.90
_run_fileFunction · 0.90
_runFunction · 0.90
_send_chatFunction · 0.90
regenerate_chat_messageFunction · 0.90
send_chat_thread_messageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected