forked from TrueCloudLab/frostfs-node
[#521] *: use stdlib errors
package
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
43e575cec2
commit
71b87155ef
171 changed files with 825 additions and 674 deletions
|
@ -1,10 +1,11 @@
|
|||
package blobovnicza
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"go.etcd.io/bbolt"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -58,8 +59,11 @@ func (b *Blobovnicza) Init() error {
|
|||
return true, b.syncFullnessCounter()
|
||||
}
|
||||
|
||||
return false, errors.Wrapf(err,
|
||||
"(%T) could not create bucket for bounds [%d:%d]", b, lower, upper)
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("(%T) could not create bucket for bounds [%d:%d]: %w",
|
||||
b, lower, upper, err)
|
||||
}
|
||||
return false, nil
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue