Added error log

This commit is contained in:
2026-06-12 13:28:39 +08:00
parent 7e857d149a
commit e439448957
+2
View File
@@ -3,6 +3,7 @@ package closure
import (
"context"
"errors"
"log"
"time"
)
@@ -77,6 +78,7 @@ func (c *CompileCache) worker() {
c.results[job.Hash] = out
delete(c.errors, job.Hash)
} else {
log.Printf("compile failed: %v", err)
c.states[job.Hash] = CompileFailed
c.errors[job.Hash] = err
}