Procházet zdrojové kódy

include base error

Darien Raymond před 7 roky
rodič
revize
622cb529a9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/dispatcher/default.go

+ 1 - 1
app/dispatcher/default.go

@@ -39,7 +39,7 @@ func NewDefaultDispatcher(ctx context.Context, config *Config) (*DefaultDispatch
 	}
 
 	if err := v.RegisterFeature((*core.Dispatcher)(nil), d); err != nil {
-		return nil, newError("unable to register Dispatcher")
+		return nil, newError("unable to register Dispatcher").Base(err)
 	}
 	return d, nil
 }