handle yaml errors in config file