forked from Botanical/BotanJS
Added error log
This commit is contained in:
@@ -3,6 +3,7 @@ package closure
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
"log"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -77,6 +78,7 @@ func (c *CompileCache) worker() {
|
|||||||
c.results[job.Hash] = out
|
c.results[job.Hash] = out
|
||||||
delete(c.errors, job.Hash)
|
delete(c.errors, job.Hash)
|
||||||
} else {
|
} else {
|
||||||
|
log.Printf("compile failed: %v", err)
|
||||||
c.states[job.Hash] = CompileFailed
|
c.states[job.Hash] = CompileFailed
|
||||||
c.errors[job.Hash] = err
|
c.errors[job.Hash] = err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user