Catch syntax errors whie parsing yaml and log