Hacker News new | ask | show | jobs
by mirekrusin 1329 days ago
This config file is likely mounted in container, possibly different on different environemnts - ie. not "embedded", not "known at compile time".
1 comments

And so failure is a user mistake, not a programmer mistake, and should be handled as such. The programmer and the user being the same person is irrelevant.
The difference is that the config is loaded at bootstrap stage - if it fails, starting service fails, there is not much to handle other than crash and supervisor (ie. k8s or whatever) will try to start it again.
You would likely exit. Crashing on invalid user input would be nonsensical.