Skip to content

Make YarnFn failable #229

@alec-deason

Description

@alec-deason

Calling a YarnFn can fail in several ways. Currently they all panic which is probably alright since they are all (I think) unrecoverable from the runtime's perspective. However panicing inside the YarnFn impl means that there isn't enough information available to emit useful error messages. In particular the YarnFn does not know what name it is bound to in yarn. I think we should instead return Result and then the VirtualMachine can unwrap that and add context to the error message if necessary.

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