Skip to content

Commit

Permalink
Log a fatal before exit if node cannot be created
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald committed Sep 9, 2024
1 parent 6e1a905 commit 78498b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func New(config node.Config) (App, error) {

n, err := node.New(&config, logFactory, log)
if err != nil {
log.Fatal("failed to initialize node", zap.Error(err))
log.Stop()
logFactory.Close()
return nil, fmt.Errorf("failed to initialize node: %w", err)
Expand Down

0 comments on commit 78498b0

Please # to comment.