diff --git a/cluster/calcium/calcium.go b/cluster/calcium/calcium.go index 7a1ec046c..a196b478b 100644 --- a/cluster/calcium/calcium.go +++ b/cluster/calcium/calcium.go @@ -90,7 +90,14 @@ func New(config types.Config, t *testing.T) (*Calcium, error) { cal := &Calcium{store: store, config: config, source: scm, watcher: watcher, resource: resource} cal.wal, err = newWAL(config, cal) - cal.identifier = config.Identifier() + if err != nil { + return nil, logger.ErrWithTracing(nil, errors.WithStack(err)) //nolint + } + + cal.identifier, err = config.Identifier() + if err != nil { + return nil, logger.ErrWithTracing(nil, errors.WithStack(err)) //nolint + } go cal.InitMetrics()