commands, hugolib: Get file context in "config parse failed" errors

Fixes #5325
This commit is contained in:
Bjørn Erik Pedersen
2018-10-22 20:20:48 +02:00
parent 2bf686ee21
commit ed7b3e2619
8 changed files with 35 additions and 21 deletions

View File

@@ -1145,7 +1145,7 @@ func TestDegenerateInvalidFrontMatterShortDelim(t *testing.T) {
r string
err string
}{
{invalidFrontmatterShortDelimEnding, ":2: EOF looking for end YAML front matter delimiter"},
{invalidFrontmatterShortDelimEnding, "EOF looking for end YAML front matter delimiter"},
}
for _, test := range tests {
s := newTestSite(t)