Skip to content

Errors on command load should throw errors instead of invalidating the command #914

@nferch

Description

@nferch

Is your feature request related to a problem? Please describe.
Build and programming errors can result in broken dependencies that don't produce errors until runtime.

Describe the solution you'd like
An error in loading a command, such as MODULE_NOT_FOUND should cause the CLI to fail rather than producing a confusing 'Invalid command` error.

Describe alternatives you've considered
I'm not able to find a place in the oclif API to catch command load errors in order to display a more explicit error message

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