Lua: produce more informative error messages for pandoc errors

Errors are reported in Lua in the same words in which they would be
reported in the terminal.
This commit is contained in:
Albert Krewinkel
2022-10-05 21:53:03 +02:00
parent b05c380f6f
commit 48ab7a17cf
2 changed files with 5 additions and 5 deletions
@@ -50,7 +50,7 @@ return {
test('fails if template has non-existing partial', function ()
assert.error_matches(
function () return template.compile('${ nosuchpartial() }') end,
'PandocCouldNotFindDataFileError'
'Could not find data file templates/nosuchpartial'
)
end),
test('works with default template that uses partials', function ()