### Bug description

I'm running Quarto 0.9.600. 

When Quarto encounters a YAML error anywhere in the document, it fails with the error message
```{md}
ERROR: Render failed due to invalid YAML.
```
Since in-chunk options are handled as YAML, such errors can appear anywhere in the document's source files.  If it's been a minute since you've re-rendered the output, the lack of information in the error message can make it challenging to locate the problem in a moderately complex document.  

````md
---
title: "This document is broken"
author: "But where?"
---
```{r}
#| include: false
2 + 2
```
The problem isn't in the previous chunk. Maybe it has to do with @tbl-mtcars? 
```{r}
#| label: tbl-mtcars
#| tbl-cap: "Right here! I'm missing my closing quote
knitr::kable(mtcars)
```
````

So as a feature request/enhancement I'd like to request more informative error messages when the YAML parser gets tripped up. 

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, self-contained, and reproducible example?
- [X] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cscheid
2022-06-20T19:13:43Z
dhicks
bug yaml-validation
1.0
closed
[feature request] More informative error messages on YAML errors
https://github.com/quarto-dev/quarto-cli/issues/1187