### Bug description

Render this document fails using the latest nightly release of Quarto 

```
---
format: pdf 
---
```

Example in R 

``` r
file.create("test.qmd")
#> [1] TRUE
writeLines(c("---", "format: pdf", "---"), "test.qmd")


tryCatch(quarto::quarto_render("test.qmd"),
         error = function(cnd) {
           cnd$stderr
})
#> [1mpandoc [22m
#>   to: latex
#>   output-file: test.tex
#>   standalone: true
#>   pdf-engine: xelatex
#>   variables:
#>     graphics: true
#>     tables: true
#>   default-image-extension: pdf
#>   
#> [1mmetadata[22m
#>   documentclass: scrartcl
#>   classoption:
#>     - DIV=11
#>     - numbers=noendperiod
#>   papersize: letter
#>   header-includes:
#>     - '\KOMAoption{captions}{tableheading}'
#>   block-headings: true
#>   
#> [1mrunning xelatex - 1[22m
#>   This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
#>    restricted \write18 enabled.
#>   entering extended mode
#>   
#> [1mupdating tlmgr[22m
#> 
#> [1mupdating existing packages[22m
#> [1m
#> compilation failed- error[22m
#> see test.log for more information.
#> [1] "\033[1mpandoc \033[22m\n  to: latex\n  output-file: test.tex\n  standalone: true\n  pdf-engine: xelatex\n  variables:\n    graphics: true\n    tables: true\n  default-image-extension: pdf\n  \n\033[1mmetadata\033[22m\n  documentclass: scrartcl\n  classoption:\n    - DIV=11\n    - numbers=noendperiod\n  papersize: letter\n  header-includes:\n    - '\\KOMAoption{captions}{tableheading}'\n  block-headings: true\n  \n\033[1mrunning xelatex - 1\033[22m\n  This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)\n   restricted \\write18 enabled.\n  entering extended mode\n  \n\033[1mupdating tlmgr\033[22m\n\n\033[1mupdating existing packages\033[22m\n\033[1m\ncompilation failed- error\033[22m\nsee test.log for more information.\n"

quarto::quarto_version()
#> [1] '1.1.149'
tinytex::tlmgr_version()
#> tlmgr revision 63068 (2022-04-18 07:58:07 +0200)
#> tlmgr using installation: /Users/qiushi/Library/TinyTeX
#> TeX Live (https://tug.org/texlive) version 2022
xfun::session_info()
#> R version 4.2.0 (2022-04-22)
#> Platform: aarch64-apple-darwin20 (64-bit)
#> Running under: macOS Monterey 12.5
#> 
#> Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
#> 
#> Package version:
#>   askpass_1.1       base64enc_0.1.3   bslib_0.4.0       cachem_1.0.6     
#>   callr_3.7.2       cli_3.3.0         clipr_0.8.0       compiler_4.2.0   
#>   curl_4.3.2        digest_0.6.29     evaluate_0.16     fansi_1.0.3      
#>   fastmap_1.1.0     fs_1.5.2          glue_1.6.2        graphics_4.2.0   
#>   grDevices_4.2.0   highr_0.9         htmltools_0.5.3   jquerylib_0.1.4  
#>   jsonlite_1.8.0    knitr_1.40        later_1.3.0       lifecycle_1.0.1  
#>   magrittr_2.0.3    memoise_2.0.1     methods_4.2.0     openssl_2.0.2    
#>   packrat_0.8.1     pillar_1.8.1.9000 pkgconfig_2.0.3   processx_3.7.0   
#>   ps_1.7.1          purrr_0.3.4       quarto_1.2.0.9000 R.cache_0.16.0   
#>   R.methodsS3_1.8.2 R.oo_1.25.0       R.utils_2.12.0    R6_2.5.1         
#>   rappdirs_0.3.3    Rcpp_1.0.9.1      rematch2_2.1.2    reprex_2.0.2     
#>   rlang_1.0.4       rmarkdown_2.16    rprojroot_2.0.3   rsconnect_0.8.27 
#>   rstudioapi_0.14   sass_0.4.2        stats_4.2.0       stringi_1.7.8    
#>   stringr_1.4.1     styler_1.7.0.9001 sys_3.4           tibble_3.1.8     
#>   tinytex_0.41      tools_4.2.0       utf8_1.2.2        utils_4.2.0      
#>   vctrs_0.4.1       withr_2.5.0       xfun_0.32         yaml_2.3.5
```

<sup>Created on 2022-08-28 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>
[log file](https://gist.github.com/qiushiyan/97d9df61aa2ff1bf571f52af6dafa56f)

Although it is expected that tinytex produce no output with empty content, the quarto error could be improved to indicate this. 

2022-08-28T23:45:35Z
qiushiyan
bug
closed
Render PDF fails with empty content
https://github.com/quarto-dev/quarto-cli/issues/2183