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

Tell about possibly missing dvm install #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jcd
Copy link
Contributor

@jcd jcd commented Nov 13, 2015

resolve #36

catch (Exception ex)
{
import std.regex;
if (matchFirst(ex.toString(), r"dmd-[\d\.]+\.bat"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like using the textual representation of an exception to identify what kind of exception it is. Please either catch the specific exception type or make an explicit check that the necessary file/directory structure is available.

Perhaps it's worth adding a more general check which is executed for all commands?

@jacob-carlborg
Copy link
Owner

When ready, please squash the commits and update the changelog as well.

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

Successfully merging this pull request may close these issues.

Cannot find dmd-2.0xx.x.bat file
2 participants