Skip to content

return an error instead of panic in GetOperationContext #3828

@Aden-Q

Description

@Aden-Q

It's not a good idea to panic in GetOperationContext. Better to return an error here instead of panic:

panic("missing operation context")

Or just return a nil if the operation context is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions