Better error handling in config parsing.