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

Error if custom directory doesn't exist #55

Open
lstejskal opened this issue Jul 19, 2012 · 0 comments
Open

Error if custom directory doesn't exist #55

lstejskal opened this issue Jul 19, 2012 · 0 comments

Comments

@lstejskal
Copy link

If I want to use non-existent custom directory for rubywarrior data using -d parameter, game offers me to create rubywarrior subdirectory under it and then crashes because the custom directory doesn't exist.

Example:

rubywarrior -dnodir
No rubywarrior directory found, would you like to create one? [yn] y
lib/ruby_warrior/game.rb:29:in `mkdir': No such file or directory - nodir/rubywarrior (Errno::ENOENT)

IMHO game should offer to create custom directory before creating rubywarrior directory.

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