未验证 提交 d83b8bc7 编写于 作者: Z zhatiai 提交者: GitHub

remove NoSuchKey error log from the method GetWorkflowV4LocalTestSuite (#2923)

Signed-off-by: Nzhatiai <zhatiai@koderover.com>
Co-authored-by: Nzhatiai <zhatiai@koderover.com>
上级 22d53bd5
......@@ -216,6 +216,9 @@ func GetWorkflowV4LocalTestSuite(workflowName, jobName string, taskID int64, log
return testReport, fmt.Errorf("failed to create s3 client for download, error: %+v", err)
}
if err = client.Download(s3Storage.Bucket, objectKey, filename); err != nil {
if strings.Contains(err.Error(), "NoSuchKey") {
return testReport, fmt.Errorf("getLocalTestSuite s3 Download err: %v", err)
}
log.Errorf("GetLocalTestSuite s3 Download err:%v", err)
return testReport, fmt.Errorf("getLocalTestSuite s3 Download err: %v", err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册