check error returned from NewNode (#11624)

This commit is contained in:
Jorge Hernandez 2022-04-13 02:17:38 -06:00 committed by GitHub
parent c2fd51b4c5
commit 5ad3a36a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -279,7 +279,9 @@ func startInProcess(ctx *Context, clientCtx client.Context, appCreator types.App
node.DefaultMetricsProvider(cfg.Instrumentation),
ctx.Logger,
)
if err != nil {
return err
}
if err := tmNode.Start(); err != nil {
return err
}