From 84d122338e790f22d4ac4626840f2366da7a6258 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Fri, 5 Jan 2024 00:23:59 +0800 Subject: [PATCH] fix --- library/contentaudit/imageaudit/imageaudit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/contentaudit/imageaudit/imageaudit.go b/library/contentaudit/imageaudit/imageaudit.go index bb62fe00..42dc751d 100644 --- a/library/contentaudit/imageaudit/imageaudit.go +++ b/library/contentaudit/imageaudit/imageaudit.go @@ -45,7 +45,9 @@ func executeImageAuditTasks(tasks []*ImageAuditTaskControlBlock, batchId string) _result, err := defaultImageAuditClient.ScanImageAdvance(req, runtime) //_result, err := defaultImageAuditClient.ScanImageWithOptions(req, runtime) if err != nil { - logger.Error("ScanImageAdvance fail, err : %v", err) + if _t, ok := err.(*tea.SDKError); ok { + logger.Error("ScanImageAdvance fail, errinfo : %v", util.DerefString(_t.Data)) + } handleBatchError(tasks, batchId, err) return }