mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
perf: 优化华为dns接口报错信息输出
This commit is contained in:
@@ -34,7 +34,7 @@ export class HuaweiYunClient {
|
|||||||
return res.data;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.error("华为云接口请求出错:", e?.response?.data);
|
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;
|
error.code = e?.response?.code;
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user