diff --git a/packages/beacon-node/src/network/processor/gossipHandlers.ts b/packages/beacon-node/src/network/processor/gossipHandlers.ts index f1f6c63c7b7b..1e2ef06abd31 100644 --- a/packages/beacon-node/src/network/processor/gossipHandlers.ts +++ b/packages/beacon-node/src/network/processor/gossipHandlers.ts @@ -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);