Skip to content

Ensure return value of function in and_then is either {:ok, ...} or {:error, ...} #17

@s-m-i-t-a

Description

@s-m-i-t-a

There is a need to implement a check to ensure that the return value of the function used in and_then matches the expected pattern of either {:ok, ...} or {:error, ...}. This is crucial for maintaining consistency in our error handling and ensuring that our functions adhere to the expected return conventions. This check should help prevent unexpected behaviors in the pipeline by enforcing a standard pattern for success and error states.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions