summaryrefslogtreecommitdiff
path: root/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-10-18 15:50:31 +0300
committerValery Piashchynski <[email protected]>2021-10-18 15:50:31 +0300
commitc23ea80b8aa4c5b72ec869f516ad6ac06f0a2e44 (patch)
treeaa673bf07bfb6082d3b38a14f2ddd31d43b133da /pool
parent025b6c84ac0592fa0f1bc07efe9c62646c397bef (diff)
use proper type of error
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pool')
-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)