MCPcopy
hub / github.com/1Panel-dev/MaxKB / error

Function error

apps/common/result/result.py:45–51  ·  view source on GitHub ↗

获取一个失败的响应对象 :param message: 错误提示 :return: 接口响应对象

(message, **kwargs)

Source from the content-addressed store, hash-verified

43
44
45def error(message, **kwargs):
46 """
47 获取一个失败的响应对象
48 :param message: 错误提示
49 :return: 接口响应对象
50 """
51 return Result(code=500, message=message, **kwargs)

Callers

nothing calls this directly

Calls 1

ResultClass · 0.70

Tested by

no test coverage detected