summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpool/static_pool.go2
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)