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

Handle error when generating new project in existing directory #40

Open
zie1ony opened this issue Nov 22, 2022 · 0 comments
Open

Handle error when generating new project in existing directory #40

zie1ony opened this issue Nov 22, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@zie1ony
Copy link
Contributor

zie1ony commented Nov 22, 2022

Scenario

[2022/11/22 13:53:25] ziel ~ 
o_0 > mkdir aaa
[2022/11/22 13:54:25] ziel ~ 
o_0 > cargo odra new --name aaa
⚠️   Favorite `odradev/odra-template` not found in config, using it as a git repository: https://github.com/odradev/odra-template.git
date => '2022-11-22'
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ⛔   Target directory already exists, aborting!', src/actions/init.rs:59:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error should be much cleaner.

@zie1ony zie1ony added the good first issue Good for newcomers label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: 🆕 Discuss
Development

No branches or pull requests

1 participant