Skip to content

Commit

Permalink
Merge pull request #578 from etclabscore/rpc-startup-error-handling
Browse files Browse the repository at this point in the history
node: return an error when node.startRPC returns one
  • Loading branch information
meowsbits authored Nov 1, 2023
2 parents 41af9e9 + 2713495 commit 4e2284e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ func (n *Node) openEndpoints() error {
// start RPC endpoints
err := n.startRPC()
if err != nil {
log.Error("Failed to open RPC endpoints", "error", err)
n.stopRPC()
n.server.Stop()
return err
}
err = n.setupOpenRPC()
return err
Expand Down

0 comments on commit 4e2284e

Please sign in to comment.