ruby-warrior icon indicating copy to clipboard operation
ruby-warrior copied to clipboard

Error if custom directory doesn't exist

Open lstejskal opened this issue 12 years ago • 0 comments

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.

lstejskal avatar Jul 19 '12 15:07 lstejskal