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

Fix panic-string-logging code path broken by recent dynamic-borrow fix. #960

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Jul 21, 2023

In #925 I accidentally changed the control flow in panic-recovery to a double-nested if let. Unfortunately there's an else after the outer block, so if the second if let fails we skip the else.

This results in an SDK test failure (test_invoke_expect_string) which is blocking completion of an SDK update to the current env.

This PR fixes it (and tightens up the comments).

@graydon graydon requested a review from sisuresh as a code owner July 21, 2023 06:43
@graydon graydon requested a review from dmkozh July 21, 2023 06:43
@graydon graydon enabled auto-merge (squash) July 21, 2023 06:58
soroban-env-host/src/host/frame.rs Outdated Show resolved Hide resolved
@graydon graydon merged commit 63cf7fe into main Jul 21, 2023
8 checks passed
@graydon graydon deleted the fix-panic-string-logging branch July 21, 2023 18:39
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.

2 participants