fix detecting yaml parsing errors for psych, add the parsing message