Skip to content

Commit

Permalink
add more meta info to error
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Dec 8, 2023
1 parent 28c4e1f commit add164a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/beacon-node/src/network/processor/gossipHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function getDefaultHandlers(modules: ValidatorFnsModules, options: GossipHandler

// blockInput can't be returned null, improve by enforcing via return types
if (blockInput === null) {
throw Error(`Invalid null blockInput returned by getGossipBlockInput for type=${GossipedInputType.block}`);
throw Error(
`Invalid null blockInput returned by getGossipBlockInput for type=${GossipedInputType.block} blockHex=${blockHex} slot=${slot}`
);
}
} else {
blockInput = getBlockInput.preDeneb(config, signedBlock, BlockSource.gossip, blockBytes);
Expand Down

0 comments on commit add164a

Please sign in to comment.