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

Crash on missing .leet.toml file #93

Open
c-git opened this issue Aug 25, 2024 · 0 comments
Open

Crash on missing .leet.toml file #93

c-git opened this issue Aug 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@c-git
Copy link
Contributor

c-git commented Aug 25, 2024

Describe the bug

If .leet.toml is missing the program crashes.

Leetcode problem

Not related to a specific problem

To Reproduce

Do not have a .leet.toml and try to generate a module

``

Error Message

Error: failed to load config

Caused by:
    0: failed to read .leet.toml
    1: No such file or directory (os error 2)

Expected behavior

Missing file is ignored or a warning is issued but not crash and just create new file on save.

Environment Info:

  • Cargo Version: N/A

Additional context

@c-git c-git added the bug Something isn't working label Aug 25, 2024
@c-git c-git changed the title Not crash on missing file Crash on missing .leet.toml file Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant