Oughie / clock-rs

clock-rs - A clock for your terminal!
Apache License 2.0
27 stars 2 forks source link

Check if config file exists before returning path #1

Closed yorunoken closed 1 month ago

yorunoken commented 1 month ago

Hello! I saw your project from reddit and wanted to try it out, however I noticed that if you try to run the project without having created a configuration file, the program just crashes because it can't find the file.

I added a check so the program will use the default config if the file can't be found, by returning None for the file_path variable.

Oughie commented 1 month ago

Yeah, seems like a bug. I've merged your pull request.

Thank you for contributing!

yorunoken commented 1 month ago

no worries, really cool project btw!