Skip to content

Commit 54bbd97

Browse files
committed
show path to project when YAML validation fails
1 parent e3c7685 commit 54bbd97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ All changes included in 1.6:
7878

7979
## Projects
8080

81+
- ([#10125](https://github.com/quarto-dev/quarto-cli/issues/10125)): Show path to the project when project YAML validation fails.
8182
- ([#10268](https://github.com/quarto-dev/quarto-cli/issues/10268)): `quarto create` supports opening project in Positron, in addition to VS Code and RStudio IDE.
8283
- ([#10285](https://github.com/quarto-dev/quarto-cli/issues/10285)): Include text from before the first chapter sections in search indices. In addition, include text of every element with `.quarto-include-in-search-index` class in search indices.
8384
- ([#10566](https://github.com/quarto-dev/quarto-cli/issues/10566)): Ensure that `quarto run` outputs `stdout` and `stderr` to the correct streams.

src/project/project-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ function quartoYamlProjectConfigResolver(
496496
if (configFile) {
497497
// read config file
498498
const files = [configFile];
499-
const errMsg = "Project _quarto.yml validation failed.";
499+
const errMsg = `Project ${configFile} validation failed.`;
500500
let config = (await readAndValidateYamlFromFile(
501501
configFile,
502502
configSchema,

0 commit comments

Comments
 (0)