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

[cli] Fix validation check that would silently crash on windows #927

Merged
merged 1 commit into from Aug 23, 2018

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Aug 22, 2018

For some obscure reason, when using fse.readdir() where it returns ENOENT, the whole process would just silently crash/exit on windows with no meaningful error. I'll try to debug the problem in more depth, but for now I've switched to using plain old fs.readdirSync() which seems to work fine.

Edit: I also snuck in a few readability tweaks, and most importantly fixed a bug where when specifying --dataset it would still prompt for dataset visibility when the dataset already exists, which makes no sense.

Also the --output-path flag would only work in unattended mode, but will now work regardless.

@rexxars rexxars requested a review from bjoerge August 22, 2018 21:02
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

Amazing detective work! 🕵️ I guess this fixes #915 too.

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.

None yet

2 participants