From 1ab630eb24923c861a22aaae67a4694f2f676bbd Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 18 Jan 2021 11:27:27 +0300 Subject: [PATCH] [#323] storage/shard: Fix message of the error returned by Init method Signed-off-by: Leonard Lyubich --- pkg/local_object_storage/shard/control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/shard/control.go b/pkg/local_object_storage/shard/control.go index edb18273a..f3bf17954 100644 --- a/pkg/local_object_storage/shard/control.go +++ b/pkg/local_object_storage/shard/control.go @@ -35,7 +35,7 @@ func (s *Shard) Init() error { for _, component := range components { if err := component.Init(); err != nil { - return errors.Wrapf(err, "could not initialize %s", component) + return errors.Wrapf(err, "could not initialize %T", component) } }