Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LeoVie opened this issue Aug 28, 2019 · 0 comments
Open

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

LeoVie opened this issue Aug 28, 2019 · 0 comments

Comments

@LeoVie
Copy link

LeoVie commented Aug 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant