Add error handling for config errors in CLI.