Better error handling in config file parsing.