Skip to content

Fix defer in a loop causing early exit. - #1862

Open
MrOverlord wants to merge 2 commits into
elves:mainfrom
MrOverlord:defer-fix
Open

Fix defer in a loop causing early exit.#1862
MrOverlord wants to merge 2 commits into
elves:mainfrom
MrOverlord:defer-fix

Conversation

@MrOverlord

Copy link
Copy Markdown
Contributor

Fixes #1849.
My confidence is a bit low in this change, as I am not sure I understood the semantics of error propagation in Elvish's code correctly.

@xiaq

xiaq commented Jan 5, 2025

Copy link
Copy Markdown
Member

Thanks for the fix! I'm slightly puzzled how this fix works - it seems there's something deeper that's wrong. I'll look into this a bit more and get back to this.

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.

Defer inside a for loop causes early exit

2 participants