Skip to content

Improve error message if src or test directory does not exist #2

@LeoVie

Description

@LeoVie

Given your --src directory is Classes, but you accidentally type Classses instead.
Then you receive a confusing error message Directory name must not be empty. thrown by Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator.
It would be nice if this exception could get catched and the user could get an error message like The given src directory does not exist.. Maybe it would be the best to validate the given --src and --test directories as the very first action of the RunCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions