From 5c81f7a568ab408bcdf3c2b10098c25dd82ade56 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Tue, 3 May 2022 10:50:39 -0400 Subject: [PATCH] Make panic output from BlockStore.SaveBlock more readable Signed-off-by: Thane Thomson --- internal/store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/store/store.go b/internal/store/store.go index e188eab7c..0de330f6d 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -483,7 +483,7 @@ func (bs *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, s panic("BlockStore can only save complete block part sets") } if height != seenCommit.Height { - panic(fmt.Sprintf("BlockStore cannot save seen commit of a different height (block:%d, commit%d)", + panic(fmt.Sprintf("BlockStore cannot save seen commit of a different height (block: %d, commit: %d)", height, seenCommit.Height)) }