Skip to content

Commit

Permalink
Add some more context to error
Browse files Browse the repository at this point in the history
Updates #11970
  • Loading branch information
bep committed Feb 1, 2024
1 parent 54ad51e commit 034fbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/page__meta.go
Expand Up @@ -755,7 +755,7 @@ func (p *pageMeta) newContentConverter(ps *pageState, markup string) (converter.
}
cp := p.s.ContentSpec.Converters.Get(markup)
if cp == nil {
return converter.NopConverter, fmt.Errorf("no content renderer found for markup %q", markup)
return converter.NopConverter, fmt.Errorf("no content renderer found for markup %q, page: %s", markup, ps.getPageInfoForError())
}

var id string
Expand Down

0 comments on commit 034fbef

Please sign in to comment.