rust-practice / cargo-leet

Program to make working on leetcode problems locally more convenient
Apache License 2.0
5 stars 3 forks source link

Crash on missing `.leet.toml` file #93

Open c-git opened 2 months ago

c-git commented 2 months ago

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:

Additional context