-
Notifications
You must be signed in to change notification settings - Fork 3
defer error is ignored #560
Copy link
Copy link
Labels
area/ipceiImportant Project of Common European InterestImportant Project of Common European Interestkind/bugfixBugBug
Milestone
Metadata
Metadata
Assignees
Labels
area/ipceiImportant Project of Common European InterestImportant Project of Common European Interestkind/bugfixBugBug
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
StatusShow more project fields
🍺 Done
Context
Here is an example of this issue:
open-component-model/open-component-model#448
If an error is returned in a defer-statement
e.g.
If the error in the assignment is not a named return parameter, the above code does not do anything.
Additional Comments
We have a lot of places in our code like the example given above (typically, we check for
ioclose errors in the defer). We have to find these places and fix them.