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

Creating an identically named project in a directory throws an exception #87

Closed
hyperspacemark opened this issue Mar 9, 2014 · 2 comments · Fixed by #100
Closed

Creating an identically named project in a directory throws an exception #87

hyperspacemark opened this issue Mar 9, 2014 · 2 comments · Fixed by #100
Labels

Comments

@hyperspacemark
Copy link
Contributor

Assuming ~/Project exists, mkdir fails when a new project attempts to be created

[~] liftoff
Project name? Project
Company name? Mark Adams
Author name? Mark Adams
Prefix? MA
/Users/Mark/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir': File exists - Project (Errno::EEXIST)
    from /Users/Mark/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
    from /Users/Mark/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:174:in `block in mkdir'
    from /Users/Mark/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:173:in `each'
    from /Users/Mark/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:173:in `mkdir'
    from /Users/Mark/Development/Ruby/liftoff/lib/liftoff/file_manager.rb:6:in `create_project_dir'
    from /Users/Mark/Development/Ruby/liftoff/lib/liftoff/launchpad.rb:14:in `liftoff'
    from /Users/Mark/Development/Ruby/liftoff/lib/liftoff/cli.rb:11:in `run'
    from ./bin/liftoff:9:in `<main>'
@gfontenot
Copy link
Member

Is the problem the stack trace, or the error? What would you expect to happen in this case?

@hyperspacemark
Copy link
Contributor Author

The problem is the un-handled error. I would expect to be presented with a message that there is an existing directory with this name and then be given the option to write over it.

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

Successfully merging a pull request may close this issue.

2 participants