Add some more context to error

Updates #11970
This commit is contained in:
Bjørn Erik Pedersen 2024-02-01 21:39:38 +01:00
parent 54ad51e8a6
commit 034fbef50d
No known key found for this signature in database

View file

@ -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