diff options
author | Wolfy-J <[email protected]> | 2018-06-03 21:49:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-03 21:49:57 +0300 |
commit | ed2719f7d4fc4ccde61e3a5c104a49b7e9e9ea5f (patch) | |
tree | a2a005a037cd1b1a959fc6a2323b4908d341a087 /static_pool.go | |
parent | 7877e54547d1f8ca3b3431c6e9aa3cbd80af1403 (diff) |
error handling
Diffstat (limited to 'static_pool.go')
-rw-r--r-- | static_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static_pool.go b/static_pool.go index 0527d024..f28cad9e 100644 --- a/static_pool.go +++ b/static_pool.go @@ -43,7 +43,7 @@ type StaticPool struct { // NewPool creates new worker pool and task multiplexer. StaticPool will initiate with one worker. func NewPool(cmd func() *exec.Cmd, factory Factory, cfg Config) (*StaticPool, error) { if err := cfg.Valid(); err != nil { - return nil, errors.Wrap(err, "cfg error") + return nil, errors.Wrap(err, "config error") } p := &StaticPool{ |