Skip to content

Commit

Permalink
Include chain creation error in health check (#2519)
Browse files Browse the repository at this point in the history
Signed-off-by: marun <[email protected]>
Co-authored-by: Dhruba Basu <[email protected]>
  • Loading branch information
maru-ava and dhrubabasu authored Dec 20, 2023
1 parent 39a5320 commit 9d19143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (m *manager) createChain(chainParams ChainParameters) {
// created or not. This attempts to notify the node operator that their
// node may not be properly validating the subnet they expect to be
// validating.
healthCheckErr := fmt.Errorf("failed to create chain on subnet: %s", chainParams.SubnetID)
healthCheckErr := fmt.Errorf("failed to create chain on subnet %s: %w", chainParams.SubnetID, err)
err := m.Health.RegisterHealthCheck(
chainAlias,
health.CheckerFunc(func(context.Context) (interface{}, error) {
Expand Down

0 comments on commit 9d19143

Please sign in to comment.