Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have my upvote. So many hours lost to "[software package] config file location".


Agreed! Few things anger me more than when a program simply reports, "File not found"... OK, which file? Where were you looking for said file?

I know how we get here, people simply report the error from the OS w/out adding context. This is why I love anyhow reporting in Rust, you can attach context (like the file name and path) to the error.

In log-store.com I report the default name of the config file (you can specify it via cmdline if you want), and the 3 locations and order searched, if the config file isn't found. I also have it report the file being used, so if you expected the file in /etc, but you accidentally had one in your home directory, you'll know on startup.

These things seem like table-stakes in 2023.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: