This is an automated email from the ASF dual-hosted git repository.

kumfo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit 3dba163b8dbd59c5c788d6c79d930912ede00cdd
Author: kumfo <[email protected]>
AuthorDate: Fri Jul 19 15:58:51 2024 +0800

    fix(cdn): aliyun oss cdn add sync status check
---
 cdn-aliyunoss/aliyunoss.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cdn-aliyunoss/aliyunoss.go b/cdn-aliyunoss/aliyunoss.go
index 2d7c7a2..219dae5 100644
--- a/cdn-aliyunoss/aliyunoss.go
+++ b/cdn-aliyunoss/aliyunoss.go
@@ -114,6 +114,7 @@ func (c *CDN) scanFiles() {
        if staticPath == "" {
                err := c.scanEmbedFiles("build")
                if err != nil {
+                       enable = false
                        log.Error("failed: scan embed files")
                        return
                }
@@ -124,7 +125,8 @@ func (c *CDN) scanFiles() {
 
        err := c.scanStaticPathFiles(staticPath)
        if err != nil {
-               log.Info("fialed: scan static path files")
+               enable = false
+               log.Error("fialed: scan static path files")
                return
        }
        enable = true

Reply via email to