[#323] storage/shard: Fix message of the error returned by Open method

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-18 15:54:55 +03:00 committed by Alex Vanin
parent cf00682065
commit 06085ba8be

View file

@ -16,7 +16,7 @@ func (s *Shard) Open() error {
for _, component := range components {
if err := component.Open(); err != nil {
return errors.Wrapf(err, "could not open %s", component)
return errors.Wrapf(err, "could not open %T", component)
}
}