claw-subagent-service 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -392,7 +392,11 @@ class OpenClawClient {
|
|
|
392
392
|
// 打印详细错误响应
|
|
393
393
|
if (err.response) {
|
|
394
394
|
this.log?.error(`[OpenClawClient] 错误状态码: ${err.response.status}`);
|
|
395
|
-
|
|
395
|
+
try {
|
|
396
|
+
this.log?.error(`[OpenClawClient] 错误响应数据: ${JSON.stringify(err.response.data)}`);
|
|
397
|
+
} catch (e) {
|
|
398
|
+
this.log?.error(`[OpenClawClient] 错误响应数据(无法JSON序列化): ${require('util').inspect(err.response.data, {depth: 2})}`);
|
|
399
|
+
}
|
|
396
400
|
}
|
|
397
401
|
}
|
|
398
402
|
// 不再内部调用 onError,让错误通过 Promise reject 向上传播,便于调用方回退
|