Skip to content

Commit

Permalink
⚙️ Return error from NetworkServices
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Jan 22, 2022
1 parent d837411 commit f26549b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ func (e *Node) Start(ctx context.Context) error {

// Start eventual declared NetworkServices
for _, s := range e.config.NetworkServices {
s(ctx, e.config, e, ledger)
err := s(ctx, e.config, e, ledger)
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit f26549b

Please sign in to comment.