Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Aug 16, 2024
1 parent 28582b3 commit 7c49003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/child/withdraw.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (ch *Child) handleTree(blockHeight uint64, latestHeight uint64, blockId []b
// panic if we are syncing and passed the finalizing block height
// this must not happened
if ch.finalizingBlockHeight != 0 && ch.finalizingBlockHeight < blockHeight {
panic(fmt.Errorf("working tree not found at height: %d, current: %d", blockHeight-1, blockHeight))
panic(fmt.Errorf("INVARIANT failed; handleTree expect to finalize tree at block `%d` but we got block `%d`", blockHeight-1, blockHeight))
}

// finalize working tree if we are fully synced or block time is over next output time
Expand Down

0 comments on commit 7c49003

Please sign in to comment.