Skip to content

Allow erroring in LuaRequire returns #581

Open
@cheesycod

Description

@cheesycod

Apparently, it is safe to raise an error in a luau require method so it would be nice if NavigateError had a Error variant that just errors with said error. As for use-cases, better/more user friendly errors when handling typo'd registered modules or just doing resolution in general (e.g. foo is not a valid builtin module instead of @abc is not a valid alias as an error etc.)

I actually got this working on a fork of mlua which I'm planning of PRing for reference

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