mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: 优化华为dns接口报错信息输出
This commit is contained in:
@@ -34,7 +34,7 @@ export class HuaweiYunClient {
|
||||
return res.data;
|
||||
} catch (e) {
|
||||
this.logger.error("华为云接口请求出错:", e?.response?.data);
|
||||
const error = new Error(e?.response?.data.message);
|
||||
const error = new Error(JSON.stringify(e?.response?.data));
|
||||
error.code = e?.response?.code;
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user