Skip to content

Commit

Permalink
Update fork choice error message when unable to connect to execution …
Browse files Browse the repository at this point in the history
…client
  • Loading branch information
courtneyeh committed Sep 4, 2023
1 parent 1907d83 commit 1f2f715
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,18 @@ public void onForkChoiceUpdatedResult(
.getHeadBlockRoot(),
forkChoiceUpdatedResult.getPayloadStatus());
}))
.finish(error -> LOG.error("Failed to update fork choice", error));
.finish(
error -> {
final String errorMessage = "Failed to update fork choice. ";
if (error
.getMessage()
.contains(
"Invalid remote response from the execution client: Failed to connect to ")) {
LOG.error(errorMessage + error.getMessage());
} else {
LOG.error(errorMessage, error);
}
});
}

public SafeFuture<Boolean> processHead() {
Expand Down

0 comments on commit 1f2f715

Please sign in to comment.