MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / buildCliAxiosErrorLog

Function buildCliAxiosErrorLog

src/controllers/cli.chat.js:235–243  ·  view source on GitHub ↗

* 构造 CLI 错误日志上下文 * @param {Error} error - 错误对象 * @returns {Promise } 日志上下文

(error)

Source from the content-addressed store, hash-verified

233 * @param {Error} error - 错误对象
234 * @returns {Promise<object>} 日志上下文
235 */
236async function buildCliAxiosErrorLog(error) {
237 return {
238 message: error?.message,
239 code: error?.code,
240 status: error?.response?.status,
241 statusText: error?.response?.statusText,
242 details: await normalizeCliErrorDetails(error?.response?.data)
243 }
244}
245
246function preprocessCliRequestBody(rawBody) {

Callers 1

handleCliChatCompletionFunction · 0.85

Calls 1

normalizeCliErrorDetailsFunction · 0.85

Tested by

no test coverage detected