diff options
-rwxr-xr-x | pool/static_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pool/static_pool.go b/pool/static_pool.go index 6c2df4e3..f500f998 100755 --- a/pool/static_pool.go +++ b/pool/static_pool.go @@ -361,7 +361,7 @@ func (sp *StaticPool) allocateWorkers(numWorkers uint64) ([]worker.BaseProcess, for i := uint64(0); i < numWorkers; i++ { w, err := sp.allocator() if err != nil { - return nil, err + return nil, errors.E(errors.WorkerAllocate, err) } workers = append(workers, w) |