MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Error

Method Error

pkg/queue/task.go:239–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239func (t *DBTask) Error() error {
240 t.mu.Lock()
241 defer t.mu.Unlock()
242
243 if t.Task != nil && t.Task.PublicState.Error != "" {
244 return errors.New(t.Task.PublicState.Error)
245 }
246
247 return nil
248}
249
250func (t *DBTask) ErrorHistory() []error {
251 t.mu.Lock()

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected