Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more information to panic #6003

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

janezpodhostnik
Copy link
Contributor

@janezpodhostnik janezpodhostnik commented May 30, 2024

ref: #5956

I added more information in the case when ChunkAt is about to panic.

Should be ported to master

@@ -31,7 +33,7 @@ func (er *BlockExecutionResult) Size() int {
}

func (er *BlockExecutionResult) CollectionExecutionResultAt(colIndex int) *CollectionExecutionResult {
if colIndex < 0 && colIndex > len(er.collectionExecutionResults) {
if colIndex < 0 || colIndex > len(er.collectionExecutionResults) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated, but I noticed this condition was wrong.

@janezpodhostnik janezpodhostnik merged commit a2ddbd2 into v0.33 Jun 4, 2024
51 checks passed
@janezpodhostnik janezpodhostnik deleted the janez/add-more-information-to-panic branch June 4, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants